From 7fdb9cfb07ec2625d43af679d155cda4c3bb3e0b Mon Sep 17 00:00:00 2001 From: SteVen Batten <6561887+sbatten@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:46:43 -0700 Subject: [PATCH] fix WCO color updates with high contrast themes (#155886) fixes #150098 --- src/vs/platform/native/electron-main/nativeHostMainService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src/vs/platform/native/electron-main/nativeHostMainService.ts index 5fd1d4d738c..a4b9b303b87 100644 --- a/src/vs/platform/native/electron-main/nativeHostMainService.ts +++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts @@ -219,8 +219,8 @@ export class NativeHostMainService extends Disposable implements INativeHostMain const window = this.windowById(windowId); if (window?.win) { window.win.setTitleBarOverlay({ - color: options.backgroundColor, - symbolColor: options.foregroundColor, + color: options.backgroundColor?.trim() === '' ? undefined : options.backgroundColor, + symbolColor: options.foregroundColor?.trim() === '' ? undefined : options.foregroundColor, height: options.height ? options.height - 1 : undefined // account for window border }); }