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(windows): Customizable title bar style (#3765)
__Issue:__ There are several quirks on Windows with the 'undecorated' Windows style - issues like:
- #3730
- #3071
- #3063
__Fix:__ These can be deal-breakers for use as a daily editor, so until we have those fixed for the 'undecorated' Windows, change the default setting to use the native titlebar.
This introduces a new setting - `window.titleBarStyle` that can be `"native"` or `"custom"`. The `"custom"` titlebar looks nicer, because it is themed and custom rendered, however it has the above quirks. On Windows, change the default to `"native"`.
In addition, this pushes up the configuration loading sooner in the startup cycle, so we can pick up configuration settings like `"window.titleBarStyle"` prior to opening the window.
__Todo:__
- [x] Fix margin on Windows, based on whether we are using the decorated window or not
- [x] Test OSX
- [x] Test Windows (both settings)
- [x] Test on Linux (both settings)
Copy file name to clipboardexpand all lines: docs/docs/configuration/settings.md
+2
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,8 @@ The configuration file, `configuration.json` is in the Oni2 directory, whose loc
181
181
182
182
-`window.menuBarVisibility`__(_"visible" | "hidden"_ default: `"visible"`)__ - Controls the visibility of the menu bar.
183
183
184
+
-`window.titleBarStyle`__(_"native" | "custom"_ default: `"native"` on Windows, `"custom"` otherwise)__ - Controls whether the titlebar is custom-rendered.
185
+
184
186
-`oni.layout.showLayoutTabs`__(_"always"|"smart"|"never"_ default: `"smart"`)__ - Controls the display of layout tabs. `"smart"` will only show the tabs if there's more than one.
185
187
186
188
-`oni.layout.layoutTabPosition`__(_"top"|"bottom"_ default: `"bottom"`)__ - Controls the position of the layout tabs.
0 commit comments