提交 374daabe 编写于 作者: M Martin Aeschlimann

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

上级 51dd97fd
......@@ -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}; }`;
......
......@@ -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]);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册