editor: Consider experimental theme overrides for colorized bracket invalidation (#43602)
Release Notes: - Fixed a small issue where bracket colors would not be immediately updated if `experimental_theme_overrides.accents` was changed.
This commit is contained in:
@@ -21565,12 +21565,22 @@ impl Editor {
|
||||
return Vec::new();
|
||||
}
|
||||
|
||||
theme::ThemeSettings::get_global(cx)
|
||||
let theme_settings = theme::ThemeSettings::get_global(cx);
|
||||
|
||||
theme_settings
|
||||
.theme_overrides
|
||||
.get(cx.theme().name.as_ref())
|
||||
.map(|theme_style| &theme_style.accents)
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.chain(
|
||||
theme_settings
|
||||
.experimental_theme_overrides
|
||||
.as_ref()
|
||||
.map(|overrides| &overrides.accents)
|
||||
.into_iter()
|
||||
.flatten(),
|
||||
)
|
||||
.flat_map(|accent| accent.0.clone())
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user