From b85ef7e5a828d6dd9620ba3d0cd0a3c77c1969de Mon Sep 17 00:00:00 2001 From: Logan Detrick Date: Fri, 12 Dec 2025 01:25:43 -0800 Subject: [PATCH] Fix incorrect bottom panel theming --- editor/gui/editor_bottom_panel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/gui/editor_bottom_panel.cpp b/editor/gui/editor_bottom_panel.cpp index db2ea18a660..65d1a1a891d 100644 --- a/editor/gui/editor_bottom_panel.cpp +++ b/editor/gui/editor_bottom_panel.cpp @@ -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 bottom_tabbar_style = get_theme_stylebox(SNAME("tabbar_background"), SNAME("BottomPanel"))->duplicate(); + // Need to get stylebox from EditorNode to update theme correctly. + Ref 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);