From 7ac833e396065cc3faacf12ca4f36afe41e7c08d Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 24 Sep 2020 06:45:34 +1000 Subject: [PATCH] Sample titlebars --- v2/test/runtime/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/v2/test/runtime/main.go b/v2/test/runtime/main.go index 957ccfe73..feb88410d 100644 --- a/v2/test/runtime/main.go +++ b/v2/test/runtime/main.go @@ -3,6 +3,7 @@ package main import ( wails "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/options" + "github.com/wailsapp/wails/v2/pkg/options/mac" ) type Echo struct { @@ -22,6 +23,11 @@ func main() { DisableResize: false, Fullscreen: false, Colour: 0xFF000088, + Mac: &mac.Options{ + // TitleBar: mac.TitleBarHidden(), + // TitleBar: mac.TitleBarHiddenInset(), + TitleBar: mac.TitleBarDefault(), + }, }) // You can also use the simplified call: