@@ -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 );
@@ -332,9 +334,11 @@ void EditorDebuggerNode::_notification(int p_what) {
332334 tabs->add_theme_style_override (SceneStringName (panel), EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" DebuggerPanel" ), EditorStringName (EditorStyles)));
333335 }
334336
335- add_theme_constant_override (" margin_left" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_LEFT));
336- add_theme_constant_override (" margin_right" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_RIGHT));
337- add_theme_constant_override (" margin_bottom" , -EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanelDebuggerOverride" ), EditorStringName (EditorStyles))->get_margin (SIDE_BOTTOM));
337+ Ref<StyleBox> bottom_panel_margins = EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" BottomPanel" ), EditorStringName (EditorStyles));
338+ add_theme_constant_override (" margin_top" , -bottom_panel_margins->get_margin (SIDE_TOP));
339+ add_theme_constant_override (" margin_left" , -bottom_panel_margins->get_margin (SIDE_LEFT));
340+ add_theme_constant_override (" margin_right" , -bottom_panel_margins->get_margin (SIDE_RIGHT));
341+ add_theme_constant_override (" margin_bottom" , -bottom_panel_margins->get_margin (SIDE_BOTTOM));
338342
339343 remote_scene_tree->update_icon_max_width ();
340344 } break ;
0 commit comments