Version May Preview
{
"workbench.colorTheme": "Default Dark SQL Operations Studio",
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#b80a0a",
"titleBar.activeForeground": "#ff0000"
},
"window.titleBarStyle": "custom"
}
The title bar should be red, using this configuration on vscode works fine but not on sqlopsstudio.
Looks like this is purposely disabled in window.ts
// {{SQL CARBON EDIT}}
// turn-off custom menus to avoid bug calculating size of SQL editor
//
// if (isMacintosh && (!windowConfig || !windowConfig.titleBarStyle || windowConfig.titleBarStyle === 'custom')) {
// const isDev = !this.environmentService.isBuilt || !!config.extensionDevelopmentPath;
// if (!isDev) {
// useCustomTitleStyle = true; // not enabled when developing due to https://github.com/electron/electron/issues/3647
// }
// }
This was disabled do to other issues it was causing in our query editor window. Once we refactor the query editor code, we should be able to reenable this feature.
To be clear, this issue is not only affecting macOS.
This property is exposed in the user settings dialog (change between custom and native), but on restart hides the native toolbar but does not enable the custom toolbar (or the custom window chroming).
This is on Windows for ADS 1.1.3.
@kburtram Should we disable the custom bar setting, sounds like using it puts the user where they don't have either menu bar.
@anthonydresser I'd be happy to raise a PR removing this setting if you'd like
I'm going to close this as a dupe of #3300 as its a more general issue for this same problem.
Most helpful comment
To be clear, this issue is not only affecting macOS.