From 19f153de00f403bcc0b0337ebf365c93a485b490 Mon Sep 17 00:00:00 2001 From: chriswang521 Date: Fri, 31 Mar 2023 11:05:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9linux=E4=B8=AD=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=95=8C=E9=9D=A2=E7=9A=84titlebar=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E4=B8=BAcustom.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vs/platform/window/common/window.ts | 4 ++-- src/vs/workbench/electron-sandbox/desktop.contribution.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/platform/window/common/window.ts b/src/vs/platform/window/common/window.ts index 37d51448..1071e3e9 100644 --- a/src/vs/platform/window/common/window.ts +++ b/src/vs/platform/window/common/window.ts @@ -5,7 +5,7 @@ import { IStringDictionary } from 'vs/base/common/collections'; 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 { ISandboxConfiguration } from 'vs/base/parts/sandbox/common/sandboxTypes'; 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 { diff --git a/src/vs/workbench/electron-sandbox/desktop.contribution.ts b/src/vs/workbench/electron-sandbox/desktop.contribution.ts index 206b1ae3..32972578 100644 --- a/src/vs/workbench/electron-sandbox/desktop.contribution.ts +++ b/src/vs/workbench/electron-sandbox/desktop.contribution.ts @@ -199,7 +199,7 @@ import { ModifierKeyEmitter } from 'vs/base/browser/dom'; 'window.titleBarStyle': { 'type': 'string', 'enum': ['native', 'custom'], - 'default': isLinux ? 'native' : 'custom', + 'default': 'custom', '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.") },