30 lines
597 B
Go
30 lines
597 B
Go
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 appTester struct {
|
|
appAdapter
|
|
}
|
|
|
|
func (a *appTester) GetAppName() string {
|
|
return common.TOOLBAR_TESTER
|
|
}
|
|
|
|
func (a *appTester) LazyInit() error {
|
|
a.tabItem = container.NewTabItemWithIcon(common.TOOLBAR_TESTER, theme.AccountIcon(), nil)
|
|
a.tabItem.Content = container.NewCenter(
|
|
container.NewVBox(
|
|
widget.NewLabelWithStyle(common.TOOLBAR_TESTER,
|
|
fyne.TextAlignCenter,
|
|
fyne.TextStyle{Bold: true})),
|
|
)
|
|
return nil
|
|
}
|