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,