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:
Finn Evers
2025-11-26 22:51:11 +00:00
committed by GitHub
parent c366627642
commit 958f1098b7
+11 -1
View File
@@ -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()
}