init
This commit is contained in:
31
app_options.go
Normal file
31
app_options.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
|
||||
"github.com/wailsapp/wails/v2/pkg/options"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
|
||||
)
|
||||
|
||||
const (
|
||||
appTitle = "SGG AI 技能管理器"
|
||||
defaultTrayIconPath = "build/windows/icon.ico"
|
||||
)
|
||||
|
||||
func newAppOptions(app *App, assets fs.FS) *options.App {
|
||||
return &options.App{
|
||||
Title: appTitle,
|
||||
Width: 1024,
|
||||
Height: 768,
|
||||
HideWindowOnClose: true,
|
||||
AssetServer: &assetserver.Options{
|
||||
Assets: assets,
|
||||
},
|
||||
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
|
||||
OnStartup: app.startup,
|
||||
OnShutdown: app.shutdown,
|
||||
Bind: []interface{}{
|
||||
app,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user