You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Merge pull request #113922 from lodetrick/second-try
Fix incorrect bottom panel theming
This commit is contained in:
@@ -72,7 +72,8 @@ void EditorBottomPanel::_theme_changed() {
|
||||
// Add margin to make space for the right side popup button.
|
||||
icon_spacer->set_custom_minimum_size(Vector2(icon_width, 0));
|
||||
|
||||
Ref<StyleBox> bottom_tabbar_style = get_theme_stylebox(SNAME("tabbar_background"), SNAME("BottomPanel"))->duplicate();
|
||||
// Need to get stylebox from EditorNode to update theme correctly.
|
||||
Ref<StyleBox> bottom_tabbar_style = EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("tabbar_background"), SNAME("BottomPanel"))->duplicate();
|
||||
bottom_tabbar_style->set_content_margin(is_layout_rtl() ? SIDE_LEFT : SIDE_RIGHT, margin + bottom_tabbar_style->get_content_margin(is_layout_rtl() ? SIDE_RIGHT : SIDE_LEFT));
|
||||
add_theme_style_override("tabbar_background", bottom_tabbar_style);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user