mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Support HiddenInset Titlebar
This commit is contained in:
parent
e6addafcdd
commit
0c120eccc9
2 changed files with 16 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ func main() {
|
|||
Fullscreen: false,
|
||||
Colour: 0xFF000088,
|
||||
Mac: &mac.Options{
|
||||
TitleBar: mac.TitleBarHidden(),
|
||||
TitleBar: mac.TitleBarHiddenInset(),
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue