You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Remove extra margin in the top of the debugger
(cherry picked from commit 5c5a2b7472)
This commit is contained in:
committed by
Rémi Verschelde
parent
03c8e12d54
commit
6e300a0c49
@@ -855,6 +855,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|||||||
Ref<StyleBoxFlat> style_panel_invisible_top = style_content_panel->duplicate();
|
Ref<StyleBoxFlat> style_panel_invisible_top = style_content_panel->duplicate();
|
||||||
int stylebox_offset = theme->get_font("tab_fg", "TabContainer")->get_height() + theme->get_stylebox("tab_fg", "TabContainer")->get_minimum_size().height + theme->get_stylebox("panel", "TabContainer")->get_default_margin(MARGIN_TOP);
|
int stylebox_offset = theme->get_font("tab_fg", "TabContainer")->get_height() + theme->get_stylebox("tab_fg", "TabContainer")->get_minimum_size().height + theme->get_stylebox("panel", "TabContainer")->get_default_margin(MARGIN_TOP);
|
||||||
style_panel_invisible_top->set_expand_margin_size(MARGIN_TOP, -stylebox_offset);
|
style_panel_invisible_top->set_expand_margin_size(MARGIN_TOP, -stylebox_offset);
|
||||||
|
style_panel_invisible_top->set_default_margin(MARGIN_TOP, 0);
|
||||||
theme->set_stylebox("BottomPanelDebuggerOverride", "EditorStyles", style_panel_invisible_top);
|
theme->set_stylebox("BottomPanelDebuggerOverride", "EditorStyles", style_panel_invisible_top);
|
||||||
|
|
||||||
// LineEdit
|
// LineEdit
|
||||||
|
|||||||
Reference in New Issue
Block a user