Skip to content

Commit

Permalink
[themes] Foregound Color on Modals and Popups not respecting newly se…
Browse files Browse the repository at this point in the history
…lected theme. Fixes #58216
  • Loading branch information
aeschli committed Sep 12, 2018
1 parent 51dd97f commit 374daab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/code/electron-browser/workbench/workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function showPartsSplash(configuration) {
const shellBackground = data ? data.colorInfo.editorBackground : configuration.highContrast ? '#000000' : '#1E1E1E';
const shellForeground = data ? data.colorInfo.foreground : configuration.highContrast ? '#FFFFFF' : '#CCCCCC';
const style = document.createElement('style');
style.className = 'initialShellColors';
document.head.appendChild(style);
document.body.className = `monaco-shell ${baseTheme}`;
style.innerHTML = `.monaco-shell { background-color: ${shellBackground}; color: ${shellForeground}; }`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class PartsSplash {
if (element) {
element.remove();
}
// remove initial colors
let defaultStyles = document.head.getElementsByClassName('initialShellColors');
if (defaultStyles.length) {
document.head.removeChild(defaultStyles[0]);
}
}
}

Expand Down

0 comments on commit 374daab

Please sign in to comment.