Support HiddenInset Titlebar

This commit is contained in:
Lea Anthony 2020-09-24 06:22:49 +10:00
commit 0c120eccc9
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405
2 changed files with 16 additions and 1 deletions

View file

@ -25,3 +25,18 @@ func TitleBarHidden() *TitleBar {
HideToolbarSeparator: false,
}
}
// TitleBarHiddenInset results in a hidden title bar with an alternative look where
// the traffic light buttons are slightly more inset from the window edge.
func TitleBarHiddenInset() *TitleBar {
return &TitleBar{
TitlebarAppearsTransparent: true,
HideTitle: true,
HideTitleBar: false,
FullSizeContent: true,
UseToolbar: true,
HideToolbarSeparator: true,
}
}

View file

@ -24,7 +24,7 @@ func main() {
Fullscreen: false,
Colour: 0xFF000088,
Mac: &mac.Options{
TitleBar: mac.TitleBarHidden(),
TitleBar: mac.TitleBarHiddenInset(),
},
})