From a2d95e1b9972eb33ee0f8f7849debb04cf0e0459 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 21 Jun 2021 14:49:08 +1000 Subject: [PATCH] [v2] Update default template --- .../templates/templates/vanilla/main.tmpl.go | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/main.tmpl.go b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/main.tmpl.go index 85277542e..aff9c3783 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/main.tmpl.go +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/main.tmpl.go @@ -1,6 +1,7 @@ package main import ( + "github.com/wailsapp/wails/v2/pkg/options/windows" "log" "github.com/wailsapp/wails/v2" @@ -16,10 +17,25 @@ func main() { app := NewBasic() err := wails.Run(&options.App{ - Title: "{{.ProjectName}}", - Width: 800, - Height: 600, - DisableResize: true, + Title: "{{.ProjectName}}", + Width: 800, + Height: 600, + MinWidth: 400, + MinHeight: 400, + MaxWidth: 1280, + MaxHeight: 1024, + DisableResize: false, + Fullscreen: false, + Frameless: false, + StartHidden: false, + HideWindowOnClose: false, + DevTools: false, + RGBA: 0x000000FF, + Windows: &windows.Options{ + WebviewIsTransparent: true, + WindowBackgroundIsTranslucent: true, + DisableWindowIcon: true, + }, Mac: &mac.Options{ WebviewIsTransparent: true, WindowBackgroundIsTranslucent: true,