Map textLink.activeForeground from VS Code to link_text_hover

This commit is contained in:
Marshall Bowers 2023-12-19 18:29:27 -05:00
parent a0224b975b
commit afcf6c6852
9 changed files with 46 additions and 0 deletions

View file

@ -270,6 +270,16 @@ impl<'a> Debug for ThemeColorsRefinementPrinter<'a> {
("terminal_ansi_magenta", self.0.terminal_ansi_magenta),
("terminal_ansi_cyan", self.0.terminal_ansi_cyan),
("terminal_ansi_white", self.0.terminal_ansi_white),
("headline", self.0.headline),
("paragraph", self.0.paragraph),
("link_text", self.0.link_text),
("link_text_hover", self.0.link_text_hover),
("link_uri", self.0.link_uri),
("inline_code_background", self.0.inline_code_background),
("inline_code_border", self.0.inline_code_border),
("code_block_background", self.0.code_block_background),
("code_block_border", self.0.code_block_border),
("emphasis", self.0.emphasis),
];
f.write_str("ThemeColorsRefinement {")?;

View file

@ -217,6 +217,10 @@ impl VsCodeThemeConverter {
.tab_inactive_foreground
.as_ref()
.traverse(|color| try_parse_color(&color))?,
link_text_hover: vscode_colors
.text_link_active_foreground
.as_ref()
.traverse(|color| try_parse_color(&color))?,
tab_bar_background: vscode_colors
.editor_group_header_tabs_background
.as_ref()

View file

@ -154,6 +154,13 @@ pub struct VsCodeColors {
)]
pub terminal_ansi_white: Option<String>,
#[serde(
default,
rename = "textLink.activeForeground",
deserialize_with = "empty_string_as_none"
)]
pub text_link_active_foreground: Option<String>,
#[serde(
default,
rename = "focusBorder",