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

enable custom title/menus on linux (#62866)

上级 9c6b628e
......@@ -170,11 +170,7 @@ export class CodeWindow implements ICodeWindow {
useCustomTitleStyle = false; // not enabled when developing due to https://github.com/electron/electron/issues/3647
}
} else {
if (isLinux) {
useCustomTitleStyle = windowConfig && windowConfig.titleBarStyle === 'custom';
} else {
useCustomTitleStyle = !windowConfig || !windowConfig.titleBarStyle || windowConfig.titleBarStyle === 'custom'; // Default to custom on Windows
}
useCustomTitleStyle = !windowConfig || !windowConfig.titleBarStyle || windowConfig.titleBarStyle === 'custom'; // Default to custom
}
if (useNativeTabs) {
......
......@@ -813,7 +813,7 @@ configurationRegistry.registerConfiguration({
'window.titleBarStyle': {
'type': 'string',
'enum': ['native', 'custom'],
'default': isLinux ? 'native' : 'custom',
'default': 'custom',
'scope': ConfigurationScope.APPLICATION,
'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.
先完成此消息的编辑!
想要评论请 注册