Azuredatastudio: MacOS window.titleBarStyle not working like VsCode

Created on 20 May 2018  路  7Comments  路  Source: microsoft/azuredatastudio

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.

Bug

Most helpful comment

To be clear, this issue is not only affecting macOS.

All 7 comments

Looks like this is purposely disabled in window.ts

https://github.com/Microsoft/sqlopsstudio/blob/dafb7809875f49856b9b38e823a2f7dbd72733dd/src/vs/code/electron-main/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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ungerfall picture Ungerfall  路  3Comments

jsmith8858 picture jsmith8858  路  3Comments

ottadvantage picture ottadvantage  路  3Comments

kburtram picture kburtram  路  3Comments

blackTay picture blackTay  路  3Comments