Map scrollbar colors from VS Code themes
This commit is contained in:
parent
89884d289f
commit
3271cf1030
12 changed files with 148 additions and 0 deletions
|
@ -187,6 +187,20 @@ impl<'a> Debug for ThemeColorsRefinementPrinter<'a> {
|
|||
("tab_bar_background", self.0.tab_bar_background),
|
||||
("tab_inactive_background", self.0.tab_inactive_background),
|
||||
("tab_active_background", self.0.tab_active_background),
|
||||
(
|
||||
"scrollbar_thumb_background",
|
||||
self.0.scrollbar_thumb_background,
|
||||
),
|
||||
(
|
||||
"scrollbar_thumb_hover_background",
|
||||
self.0.scrollbar_thumb_hover_background,
|
||||
),
|
||||
("scrollbar_thumb_border", self.0.scrollbar_thumb_border),
|
||||
(
|
||||
"scrollbar_track_background",
|
||||
self.0.scrollbar_track_background,
|
||||
),
|
||||
("scrollbar_track_border", self.0.scrollbar_track_border),
|
||||
("editor_background", self.0.editor_background),
|
||||
("editor_gutter_background", self.0.editor_gutter_background),
|
||||
(
|
||||
|
|
|
@ -234,6 +234,18 @@ impl VsCodeThemeConverter {
|
|||
.editor_foreground
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?,
|
||||
scrollbar_track_background: vscode_colors
|
||||
.scrollbar_shadow
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?,
|
||||
scrollbar_thumb_background: vscode_colors
|
||||
.scrollbar_slider_background
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?,
|
||||
scrollbar_thumb_hover_background: vscode_colors
|
||||
.scrollbar_slider_hover_background
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?,
|
||||
terminal_background: vscode_colors
|
||||
.terminal_background
|
||||
.as_ref()
|
||||
|
|
|
@ -1130,6 +1130,34 @@ pub struct VsCodeColors {
|
|||
)]
|
||||
pub panel_title_inactive_foreground: Option<String>,
|
||||
|
||||
#[serde(
|
||||
default,
|
||||
rename = "scrollbar.shadow",
|
||||
deserialize_with = "empty_string_as_none"
|
||||
)]
|
||||
pub scrollbar_shadow: Option<String>,
|
||||
|
||||
#[serde(
|
||||
default,
|
||||
rename = "scrollbarSlider.background",
|
||||
deserialize_with = "empty_string_as_none"
|
||||
)]
|
||||
pub scrollbar_slider_background: Option<String>,
|
||||
|
||||
#[serde(
|
||||
default,
|
||||
rename = "scrollbarSlider.activeBackground",
|
||||
deserialize_with = "empty_string_as_none"
|
||||
)]
|
||||
pub scrollbar_slider_active_background: Option<String>,
|
||||
|
||||
#[serde(
|
||||
default,
|
||||
rename = "scrollbarSlider.hoverBackground",
|
||||
deserialize_with = "empty_string_as_none"
|
||||
)]
|
||||
pub scrollbar_slider_hover_background: Option<String>,
|
||||
|
||||
#[serde(
|
||||
default,
|
||||
rename = "statusBar.background",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue