You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): Ability to disable minimize/maximize/close native window's buttons, closes#2353 (#6665)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Copy file name to clipboardexpand all lines: core/tauri-config-schema/schema.json
+40-1
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,7 @@
105
105
"print": false,
106
106
"requestUserAttention": false,
107
107
"setAlwaysOnTop": false,
108
+
"setClosable": false,
108
109
"setContentProtected": false,
109
110
"setCursorGrab": false,
110
111
"setCursorIcon": false,
@@ -116,7 +117,9 @@
116
117
"setIcon": false,
117
118
"setIgnoreCursorEvents": false,
118
119
"setMaxSize": false,
120
+
"setMaximizable": false,
119
121
"setMinSize": false,
122
+
"setMinimizable": false,
120
123
"setPosition": false,
121
124
"setResizable": false,
122
125
"setSize": false,
@@ -383,6 +386,7 @@
383
386
"print": false,
384
387
"requestUserAttention": false,
385
388
"setAlwaysOnTop": false,
389
+
"setClosable": false,
386
390
"setContentProtected": false,
387
391
"setCursorGrab": false,
388
392
"setCursorIcon": false,
@@ -394,7 +398,9 @@
394
398
"setIcon": false,
395
399
"setIgnoreCursorEvents": false,
396
400
"setMaxSize": false,
401
+
"setMaximizable": false,
397
402
"setMinSize": false,
403
+
"setMinimizable": false,
398
404
"setPosition": false,
399
405
"setResizable": false,
400
406
"setSize": false,
@@ -605,7 +611,22 @@
605
611
"format": "double"
606
612
},
607
613
"resizable": {
608
-
"description": "Whether the window is resizable or not.",
614
+
"description": "Whether the window is resizable or not. When resizable is set to false, native window's maximize button is automatically disabled.",
615
+
"default": true,
616
+
"type": "boolean"
617
+
},
618
+
"maximizable": {
619
+
"description": "Whether the window's native maximize button is enabled or not. If resizable is set to false, this setting is ignored.\n\n## Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode. - **Linux / iOS / Android:** Unsupported.",
620
+
"default": true,
621
+
"type": "boolean"
622
+
},
623
+
"minimizable": {
624
+
"description": "Whether the window's native minimize button is enabled or not.\n\n## Platform-specific\n\n- **Linux / iOS / Android:** Unsupported.",
625
+
"default": true,
626
+
"type": "boolean"
627
+
},
628
+
"closable": {
629
+
"description": "Whether the window's native close button is enabled or not.\n\n## Platform-specific\n\n- **Linux:** \"GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\" - **iOS / Android:** Unsupported.",
609
630
"default": true,
610
631
"type": "boolean"
611
632
},
@@ -1809,6 +1830,7 @@
1809
1830
"print": false,
1810
1831
"requestUserAttention": false,
1811
1832
"setAlwaysOnTop": false,
1833
+
"setClosable": false,
1812
1834
"setContentProtected": false,
1813
1835
"setCursorGrab": false,
1814
1836
"setCursorIcon": false,
@@ -1820,7 +1842,9 @@
1820
1842
"setIcon": false,
1821
1843
"setIgnoreCursorEvents": false,
1822
1844
"setMaxSize": false,
1845
+
"setMaximizable": false,
1823
1846
"setMinSize": false,
1847
+
"setMinimizable": false,
1824
1848
"setPosition": false,
1825
1849
"setResizable": false,
1826
1850
"setSize": false,
@@ -2117,6 +2141,21 @@
2117
2141
"default": false,
2118
2142
"type": "boolean"
2119
2143
},
2144
+
"setMaximizable": {
2145
+
"description": "Allows setting whether the window's native maximize button is enabled or not.",
2146
+
"default": false,
2147
+
"type": "boolean"
2148
+
},
2149
+
"setMinimizable": {
2150
+
"description": "Allows setting whether the window's native minimize button is enabled or not.",
2151
+
"default": false,
2152
+
"type": "boolean"
2153
+
},
2154
+
"setClosable": {
2155
+
"description": "Allows setting whether the window's native close button is enabled or not.",
2156
+
"default": false,
2157
+
"type": "boolean"
2158
+
},
2120
2159
"setTitle": {
2121
2160
"description": "Allows changing the window title.",
0 commit comments