mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Disable custom title bar rendering on macOS (#362)
This commit is contained in:
@@ -169,12 +169,16 @@ export class CodeWindow implements ICodeWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let useCustomTitleStyle = false;
|
let useCustomTitleStyle = false;
|
||||||
if (isMacintosh && (!windowConfig || !windowConfig.titleBarStyle || windowConfig.titleBarStyle === 'custom')) {
|
|
||||||
const isDev = !this.environmentService.isBuilt || !!config.extensionDevelopmentPath;
|
// {{SQL CARBON EDIT}}
|
||||||
if (!isDev) {
|
// turn-off custom menus to avoid bug calculating size of SQL editor
|
||||||
useCustomTitleStyle = true; // not enabled when developing due to https://github.com/electron/electron/issues/3647
|
//
|
||||||
}
|
// 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
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
if (useNativeTabs) {
|
if (useNativeTabs) {
|
||||||
useCustomTitleStyle = false; // native tabs on sierra do not work with custom title style
|
useCustomTitleStyle = false; // native tabs on sierra do not work with custom title style
|
||||||
|
|||||||
@@ -833,6 +833,8 @@ export class Workbench implements IPartService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getCustomTitleBarStyle(): 'custom' {
|
private getCustomTitleBarStyle(): 'custom' {
|
||||||
|
// {{SQL CARBON EDIT}}
|
||||||
|
/*
|
||||||
if (!isMacintosh) {
|
if (!isMacintosh) {
|
||||||
return null; // custom title bar is only supported on Mac currently
|
return null; // custom title bar is only supported on Mac currently
|
||||||
}
|
}
|
||||||
@@ -854,6 +856,7 @@ export class Workbench implements IPartService {
|
|||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user