NewApplicationWindow takes in a WindowKind

This commit is contained in:
Sasha Koshka 2024-09-12 02:46:35 -04:00
parent 2312b48a28
commit 0f9608a50a

View File

@ -204,8 +204,8 @@ func RunApplication (application Application) {
// owned by the application. The window's icon will be automatically set by // owned by the application. The window's icon will be automatically set by
// looking for an icon with the name of the application's ID. If that is not // looking for an icon with the name of the application's ID. If that is not
// found, the default icon for the application's ApplicationRole will used. // found, the default icon for the application's ApplicationRole will used.
func NewApplicationWindow (application Application, bounds image.Rectangle) (tomo.Window, error) { func NewApplicationWindow (application Application, kind tomo.WindowKind, bounds image.Rectangle) (tomo.Window, error) {
window, err := tomo.NewWindow(bounds) window, err := tomo.NewWindow(kind, bounds)
if err != nil { return nil, err } if err != nil { return nil, err }
description := application.Describe() description := application.Describe()
window.SetTitle(description.Name) window.SetTitle(description.Name)