未验证 提交 f9a9e4e7 编写于 作者: S SteVen Batten 提交者: GitHub

enable custom title/menus on linux (#62866)

上级 9c6b628e
...@@ -170,11 +170,7 @@ export class CodeWindow implements ICodeWindow { ...@@ -170,11 +170,7 @@ export class CodeWindow implements ICodeWindow {
useCustomTitleStyle = false; // not enabled when developing due to https://github.com/electron/electron/issues/3647 useCustomTitleStyle = false; // not enabled when developing due to https://github.com/electron/electron/issues/3647
} }
} else { } else {
if (isLinux) { useCustomTitleStyle = !windowConfig || !windowConfig.titleBarStyle || windowConfig.titleBarStyle === 'custom'; // Default to custom
useCustomTitleStyle = windowConfig && windowConfig.titleBarStyle === 'custom';
} else {
useCustomTitleStyle = !windowConfig || !windowConfig.titleBarStyle || windowConfig.titleBarStyle === 'custom'; // Default to custom on Windows
}
} }
if (useNativeTabs) { if (useNativeTabs) {
......
...@@ -813,7 +813,7 @@ configurationRegistry.registerConfiguration({ ...@@ -813,7 +813,7 @@ configurationRegistry.registerConfiguration({
'window.titleBarStyle': { 'window.titleBarStyle': {
'type': 'string', 'type': 'string',
'enum': ['native', 'custom'], 'enum': ['native', 'custom'],
'default': isLinux ? 'native' : 'custom', 'default': 'custom',
'scope': ConfigurationScope.APPLICATION, 'scope': ConfigurationScope.APPLICATION,
'description': nls.localize('titleBarStyle', "Adjust the appearance of the window title bar. Changes require a full restart to apply.") 'description': nls.localize('titleBarStyle', "Adjust the appearance of the window title bar. Changes require a full restart to apply.")
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册