Add disable zoom on mac (#3289)

* Add disable zoom on mac

* Add changelog line

* Add zommable in main.m

I see this file is ignore, but i think it's better to keep it up-to-date so if we ever unignore it will work correctly.
This commit is contained in:
Cristian Bilu
2024-03-02 15:47:59 +11:00
committed by GitHub
parent e714dd92a8
commit 5d22da4126
9 changed files with 25 additions and 9 deletions
@@ -109,6 +109,7 @@ func main() {
Appearance: mac.NSAppearanceNameDarkAqua,
WebviewIsTransparent: true,
WindowIsTranslucent: false,
DisableZoom: false,
About: &mac.AboutInfo{
Title: "My Application",
Message: "© 2021 Me",
@@ -897,6 +898,13 @@ Mac: &mac.Options{
}
```
#### DisableZoom
By default, the window is zoomable. Setting this to `true` will disable the zoom button (green button).
Name: DisableZoom<br/>
Type: `bool`
#### About
This configuration lets you set the title, message and icon for the "About" menu item in the app menu created by the "AppMenu" role.