mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-12 01:59:40 +08:00
33 lines
796 B
Go
33 lines
796 B
Go
package app
|
|
|
|
type macNativeWindowControlState struct {
|
|
ShowNativeButtons bool
|
|
UseTitledWindow bool
|
|
UseFullSizeContent bool
|
|
HideWindowTitle bool
|
|
TransparentTitlebar bool
|
|
AllowNativeFullscreen bool
|
|
}
|
|
|
|
func resolveMacNativeWindowControlState(enabled bool) macNativeWindowControlState {
|
|
if enabled {
|
|
return macNativeWindowControlState{
|
|
ShowNativeButtons: true,
|
|
UseTitledWindow: true,
|
|
UseFullSizeContent: true,
|
|
HideWindowTitle: true,
|
|
TransparentTitlebar: true,
|
|
AllowNativeFullscreen: true,
|
|
}
|
|
}
|
|
|
|
return macNativeWindowControlState{
|
|
ShowNativeButtons: false,
|
|
UseTitledWindow: false,
|
|
UseFullSizeContent: false,
|
|
HideWindowTitle: false,
|
|
TransparentTitlebar: false,
|
|
AllowNativeFullscreen: false,
|
|
}
|
|
}
|