提交 243d05a9 编写于 作者: 米司特包's avatar 米司特包

feat: update go program template

上级 d563be5f
......@@ -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
}
......
......@@ -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,
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册