Merge pull request #112627 from lodetrick/fix-bottom-panel-theming

Fix incorrect bottom panel theming
This commit is contained in:
Thaddeus Crews 2025-11-13 20:52:23 -06:00
commit 45b427f2e6
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -57,7 +57,7 @@ void EditorBottomPanel::_on_tab_changed(int p_idx) {
}
void EditorBottomPanel::_theme_changed() {
Ref<StyleBox> bottom_tabbar_style = get_theme_stylebox("tabbar_background", "BottomPanel")->duplicate();
Ref<StyleBox> bottom_tabbar_style = EditorNode::get_singleton()->get_editor_theme()->get_stylebox("tabbar_background", "BottomPanel")->duplicate();
bottom_tabbar_style->set_content_margin(SIDE_RIGHT, bottom_hbox->get_minimum_size().x + bottom_tabbar_style->get_content_margin(SIDE_LEFT));
add_theme_style_override("tabbar_background", bottom_tabbar_style);