package ui import ( "go_dreamfactory/cmd/ptt/lib/common" "fyne.io/fyne/v2" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/theme" "fyne.io/fyne/v2/widget" ) type appWelcome struct { appAdapter } func (a *appWelcome) LazyInit() error { a.tabItem = container.NewTabItemWithIcon(common.TOOLBAR_WELCOME, theme.ComputerIcon(), nil) a.tabItem.Content = container.NewCenter( container.NewVBox( widget.NewLabelWithStyle(common.TOOLBAR_WELCOME, fyne.TextAlignCenter, fyne.TextStyle{Bold: true})), ) return nil } func (a *appWelcome) OpenDefault() bool { return true } func (a *appWelcome) GetAppName() string { return common.TOOLBAR_WELCOME }