@@ -65,9 +65,11 @@ EditorDebuggerNode::EditorDebuggerNode() {
6565 singleton = this ;
6666 }
6767
68- add_theme_constant_override (" margin_left" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_LEFT));
69- add_theme_constant_override (" margin_right" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_RIGHT));
70- add_theme_constant_override (" margin_bottom" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_BOTTOM));
68+ Ref<StyleBox> bottom_panel_margins = EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanel" ), EditorStringName (EditorStyles));
69+ add_theme_constant_override (" margin_top" , -bottom_panel_margins->get_margin (SIDE_TOP));
70+ add_theme_constant_override (" margin_left" , -bottom_panel_margins->get_margin (SIDE_LEFT));
71+ add_theme_constant_override (" margin_right" , -bottom_panel_margins->get_margin (SIDE_RIGHT));
72+ add_theme_constant_override (" margin_bottom" , -bottom_panel_margins->get_margin (SIDE_BOTTOM));
7173
7274 tabs = memnew (TabContainer);
7375 tabs->set_tabs_visible (false );
@@ -331,9 +333,11 @@ void EditorDebuggerNode::_notification(int p_what) {
331333 tabs->add_theme_style_override (SceneStringName (panel), EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" DebuggerPanel" ), EditorStringName (EditorStyles)));
332334 }
333335
334- add_theme_constant_override (" margin_left" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_LEFT));
335- add_theme_constant_override (" margin_right" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_RIGHT));
336- add_theme_constant_override (" margin_bottom" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_BOTTOM));
336+ Ref<StyleBox> bottom_panel_margins = EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanel" ), EditorStringName (EditorStyles));
337+ add_theme_constant_override (" margin_top" , -bottom_panel_margins->get_margin (SIDE_TOP));
338+ add_theme_constant_override (" margin_left" , -bottom_panel_margins->get_margin (SIDE_LEFT));
339+ add_theme_constant_override (" margin_right" , -bottom_panel_margins->get_margin (SIDE_RIGHT));
340+ add_theme_constant_override (" margin_bottom" , -bottom_panel_margins->get_margin (SIDE_BOTTOM));
337341
338342 remote_scene_tree->update_icon_max_width ();
339343 } break ;
0 commit comments