[themes] Foregound Color on Modals and Popups not respecting newly selected theme. Fixes #58216

This commit is contained in:
Martin Aeschlimann
2018-09-12 10:53:29 +02:00
parent 51dd97fd10
commit 374daabe9c
2 changed files with 6 additions and 0 deletions

View File

@@ -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}; }`;