Browse Source

Fixes theming issue with light/light-hc themes

main
Eric Amodio 1 year ago
parent
commit
18b5c5fc4b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/webviews/apps/shared/theme.ts

+ 3
- 3
src/webviews/apps/shared/theme.ts View File

@ -23,10 +23,10 @@ export function computeThemeColors(mutations?: MutationRecord[]): ThemeChangeEve
const root = document.documentElement;
const computedStyle = window.getComputedStyle(root);
const isLightTheme =
root.classList.contains('vscode-light') || root.classList.contains('vscode-high-contrast-light');
const classList = document.body.classList;
const isLightTheme = classList.contains('vscode-light') || classList.contains('vscode-high-contrast-light');
const isHighContrastTheme =
root.classList.contains('vscode-high-contrast') || root.classList.contains('vscode-high-contrast-light');
classList.contains('vscode-high-contrast') || classList.contains('vscode-high-contrast-light');
const rootStyle = root.style;

Loading…
Cancel
Save