修改linux中默认界面的titlebar风格为custom.

This commit is contained in:
chriswang521 2023-03-31 11:05:57 +08:00
parent 75158c373a
commit 19f153de00
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
import { IStringDictionary } from 'vs/base/common/collections'; import { IStringDictionary } from 'vs/base/common/collections';
import { PerformanceMark } from 'vs/base/common/performance'; import { PerformanceMark } from 'vs/base/common/performance';
import { isLinux, isMacintosh, isNative, isWeb, isWindows } from 'vs/base/common/platform'; import { isMacintosh, isNative, isWeb, isWindows } from 'vs/base/common/platform';
import { URI, UriComponents } from 'vs/base/common/uri'; import { URI, UriComponents } from 'vs/base/common/uri';
import { ISandboxConfiguration } from 'vs/base/parts/sandbox/common/sandboxTypes'; import { ISandboxConfiguration } from 'vs/base/parts/sandbox/common/sandboxTypes';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
@ -168,7 +168,7 @@ export function getTitleBarStyle(configurationService: IConfigurationService): '
} }
} }
return isLinux ? 'native' : 'custom'; // default to custom on all macOS and Windows return 'custom'; // default to custom on all macOS and Windows
} }
export function useWindowControlsOverlay(configurationService: IConfigurationService, environmentService: IEnvironmentService): boolean { export function useWindowControlsOverlay(configurationService: IConfigurationService, environmentService: IEnvironmentService): boolean {

View File

@ -199,7 +199,7 @@ import { ModifierKeyEmitter } from 'vs/base/browser/dom';
'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': localize('titleBarStyle', "Adjust the appearance of the window title bar. On Linux and Windows, this setting also affects the application and context menu appearances. Changes require a full restart to apply.") 'description': localize('titleBarStyle', "Adjust the appearance of the window title bar. On Linux and Windows, this setting also affects the application and context menu appearances. Changes require a full restart to apply.")
}, },