Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix theme doesn't change for parts of the debugger window(s)

Dexter7f0affa2dfc5
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp
index e20d73dd8b4..8f0f6018ebc 100644
--- a/editor/debugger/script_editor_debugger.cpp
+++ b/editor/debugger/script_editor_debugger.cpp
@@ -1123,6 +1123,10 @@ void ScriptEditorDebugger::_notification(int p_what) {
} break;
case NOTIFICATION_THEME_CHANGED: {
+ if (tabs->has_theme_stylebox_override(SceneStringName(panel))) {
+ add_style();
+ }
+
skip_breakpoints->set_button_icon(get_editor_theme_icon(skip_breakpoints_value ? SNAME("DebugSkipBreakpointsOn") : SNAME("DebugSkipBreakpointsOff")));
ignore_error_breaks->set_button_icon(get_editor_theme_icon(ignore_error_breaks_value ? SNAME("NotificationDisabled") : SNAME("Notification")));
ignore_error_breaks->add_theme_color_override("icon_normal_color", get_theme_color(SNAME("error_color"), SNAME("Editor")));