fix terminal selection colors #442

This commit is contained in:
sawka 2024-03-13 15:45:48 -07:00
parent 86b523e50e
commit 5be08516a5
3 changed files with 8 additions and 3 deletions

View File

@ -3,7 +3,7 @@
:root { :root {
/* /*
* term colors (16 + 5) form the base terminal theme * term colors (16 + 6) form the base terminal theme
* for consistency these colors should be used by plugins/applications * for consistency these colors should be used by plugins/applications
*/ */
--term-black: #000000; --term-black: #000000;
@ -27,5 +27,6 @@
--term-cmdtext: #ffffff; --term-cmdtext: #ffffff;
--term-foreground: #d3d7cf; --term-foreground: #d3d7cf;
--term-background: #000000; --term-background: #000000;
--term-selection-background: #ffffff40; --term-selection-background: #ffffff90;
--term-cursor-accent: #000000;
} }

View File

@ -6,5 +6,6 @@
--term-foreground: #000000; --term-foreground: #000000;
--term-background: #fefefe; --term-background: #fefefe;
--term-cmdtext: #000000; --term-cmdtext: #000000;
--term-selection-background: #00000018; --term-selection-background: #00000040;
--term-cursor-accent: #000000;
} }

View File

@ -58,6 +58,9 @@ function getThemeFromCSSVars(): ITheme {
theme.brightCyan = rootStyle.getPropertyValue("--term-bright-cyan"); theme.brightCyan = rootStyle.getPropertyValue("--term-bright-cyan");
theme.brightWhite = rootStyle.getPropertyValue("--term-bright-white"); theme.brightWhite = rootStyle.getPropertyValue("--term-bright-white");
theme.selectionBackground = rootStyle.getPropertyValue("--term-selection-background"); theme.selectionBackground = rootStyle.getPropertyValue("--term-selection-background");
theme.selectionInactiveBackground = rootStyle.getPropertyValue("--term-selection-background");
theme.cursor = rootStyle.getPropertyValue("--term-selection-background");
theme.cursorAccent = rootStyle.getPropertyValue("--term-cursor-accent");
return theme; return theme;
} }