Pull Git status colors from VS Code themes

This commit is contained in:
Marshall Bowers 2023-12-08 13:14:22 -05:00
parent a5a0ad8b5c
commit ab5b76e943
11 changed files with 134 additions and 4 deletions

View file

@ -75,8 +75,14 @@ impl VsCodeThemeConverter {
};
Ok(StatusColorsRefinement {
// conflict: None,
// created: None,
conflict: vscode_colors
.git_decoration_conflicting_resource_foreground
.as_ref()
.traverse(|color| try_parse_color(&color))?,
created: vscode_colors
.git_decoration_untracked_resource_foreground
.as_ref()
.traverse(|color| try_parse_color(&color))?,
deleted: vscode_colors
.error_foreground
.as_ref()
@ -94,9 +100,15 @@ impl VsCodeThemeConverter {
.as_ref()
.traverse(|color| try_parse_color(&color))?
.or(vscode_base_status_colors.hint),
// ignored: None,
ignored: vscode_colors
.git_decoration_ignored_resource_foreground
.as_ref()
.traverse(|color| try_parse_color(&color))?,
// info: None,
// modified: None,
modified: vscode_colors
.git_decoration_modified_resource_foreground
.as_ref()
.traverse(|color| try_parse_color(&color))?,
// renamed: None,
// success: None,
warning: vscode_colors