move initial back-/foreground to rapid render code (fixes #55677)

This commit is contained in:
Martin Aeschlimann
2018-08-10 16:56:05 +02:00
parent 35788350ba
commit 3e4685d87d
7 changed files with 42 additions and 58 deletions

View File

@@ -263,7 +263,7 @@ export class CodeApplication {
if (event === 'vscode:changeColorTheme' && typeof payload === 'string') {
let data = JSON.parse(payload);
this.stateService.setItem(CodeWindow.themeStorageKey, data.id);
this.stateService.setItem(CodeWindow.themeStorageKey, data.baseTheme);
this.stateService.setItem(CodeWindow.themeBackgroundStorageKey, data.background);
}
}

View File

@@ -617,10 +617,6 @@ export class CodeWindow implements ICodeWindow {
windowConfiguration.highContrast = isWindows && autoDetectHighContrast && systemPreferences.isInvertedColorScheme();
windowConfiguration.accessibilitySupport = app.isAccessibilitySupportEnabled();
// Theme
windowConfiguration.baseTheme = this.getBaseTheme();
windowConfiguration.backgroundColor = this.getBackgroundColor();
// Title style related
windowConfiguration.maximized = this._win.isMaximized();
windowConfiguration.frameless = this.hasHiddenTitleBarStyle() && !isMacintosh;