Skip to content

Commit

Permalink
Fix #9, High contrast dark-mode theming
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <44974737+paulober@users.noreply.github.com>
  • Loading branch information
paulober committed Apr 8, 2024
1 parent dfe2925 commit d1272ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webview/newProjectPanel.mts
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,10 @@ export class NewProjectPanel {
await this._panel.webview.postMessage({
command: "setTheme",
theme:
window.activeColorTheme.kind === ColorThemeKind.Dark ? "dark" : "light",
window.activeColorTheme.kind === ColorThemeKind.Dark ||
window.activeColorTheme.kind === ColorThemeKind.HighContrast
? "dark"
: "light",
});
}

Expand Down

0 comments on commit d1272ff

Please sign in to comment.