Merge pull request #114740 from YeldhamDev/help_code_theme_fix

Fix codeblocks inside docs not updating with theme changes
This commit is contained in:
Rémi Verschelde 2026-01-08 17:15:46 +01:00
commit 5b2b23e1ce
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -640,6 +640,14 @@ void EditorNode::_update_theme(bool p_skip_creation) {
if (!p_skip_creation) {
theme = EditorThemeManager::generate_theme(theme);
DisplayServer::set_early_window_clear_color_override(true, theme->get_color(SNAME("background"), EditorStringName(Editor)));
#if defined(MODULE_GDSCRIPT_ENABLED) || defined(MODULE_MONO_ENABLED)
if (EditorHelpHighlighter::get_singleton()) {
// Update syntax colors.
EditorHelpHighlighter::free_singleton();
EditorHelpHighlighter::create_singleton();
}
#endif
}
Vector<Ref<Theme>> editor_themes;