diff --git a/app.tmpl.go b/app.tmpl.go index cc4fb82..3ee9727 100644 --- a/app.tmpl.go +++ b/app.tmpl.go @@ -25,6 +25,7 @@ func (b *App) startup(ctx context.Context) { } // shutdown is called at application termination +// 在应用程序终止时被调用 func (b *App) shutdown(ctx context.Context) { // Perform your teardown here } diff --git a/main.tmpl.go b/main.tmpl.go index 64c6532..23d91e3 100644 --- a/main.tmpl.go +++ b/main.tmpl.go @@ -17,14 +17,15 @@ var assets embed.FS func main() { // Create application with options + // 使用选项创建应用 app := NewApp() err := wails.Run(&options.App{ Title: "{{.ProjectName}}", Width: 1600, Height: 1000, - MinWidth: 400, - MinHeight: 400, + MinWidth: 1400, + MinHeight: 980, MaxWidth: 2000, MaxHeight: 1500, DisableResize: false, @@ -35,7 +36,7 @@ func main() { RGBA: 0x000000FF, Assets: assets, Windows: &windows.Options{ - WebviewIsTransparent: false, + WebviewIsTransparent: true, WindowBackgroundIsTranslucent: false, DisableWindowIcon: false, },