theme_importer: Fall back to inactive tab background if no active tab background set (#3598)
This PR makes it so the `theme_importer` falls back to the inactive tab background color if the theme doesn't not an active tab background color. This fixes the active tab color in the Synthwave 84 theme. Release Notes: - N/A
This commit is contained in:
parent
050ff6b27d
commit
3120a9cbea
2 changed files with 9 additions and 5 deletions
|
@ -127,6 +127,11 @@ impl VsCodeThemeConverter {
|
|||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?;
|
||||
|
||||
let vscode_tab_inactive_background = vscode_colors
|
||||
.tab_inactive_background
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?;
|
||||
|
||||
let vscode_editor_background = vscode_colors
|
||||
.editor_background
|
||||
.as_ref()
|
||||
|
@ -213,11 +218,9 @@ impl VsCodeThemeConverter {
|
|||
tab_active_background: vscode_colors
|
||||
.tab_active_background
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?,
|
||||
tab_inactive_background: vscode_colors
|
||||
.tab_inactive_background
|
||||
.as_ref()
|
||||
.traverse(|color| try_parse_color(&color))?,
|
||||
.traverse(|color| try_parse_color(&color))?
|
||||
.or(vscode_tab_inactive_background),
|
||||
tab_inactive_background: vscode_tab_inactive_background,
|
||||
toolbar_background: vscode_colors
|
||||
.breadcrumb_background
|
||||
.as_ref()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue