@@ -65,9 +65,11 @@ EditorDebuggerNode::EditorDebuggerNode() {
65
65
singleton = this ;
66
66
}
67
67
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));
71
73
72
74
tabs = memnew (TabContainer);
73
75
tabs->set_tabs_visible (false );
@@ -332,9 +334,11 @@ void EditorDebuggerNode::_notification(int p_what) {
332
334
tabs->add_theme_style_override (SceneStringName (panel), EditorNode::get_singleton ()->get_editor_theme ()->get_stylebox (SNAME (" DebuggerPanel" ), EditorStringName (EditorStyles)));
333
335
}
334
336
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));
338
342
339
343
remote_scene_tree->update_icon_max_width ();
340
344
} break ;
0 commit comments