fix WCO color updates with high contrast themes (#155886)

fixes #150098
This commit is contained in:
SteVen Batten
2022-07-21 21:46:43 +02:00
committed by GitHub
parent 78da5e3df4
commit 7fdb9cfb07
@@ -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
});
}