Skip to content

Commit 04210d6

Browse files
committed
Refactor EditorBottomPanel using theme system
1 parent 381c0d1 commit 04210d6

File tree

6 files changed

+115
-283
lines changed

6 files changed

+115
-283
lines changed

editor/editor_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ void EditorNode::_update_theme(bool p_skip_creation) {
579579

580580
editor_main_screen->add_theme_style_override(SceneStringName(panel), theme->get_stylebox(SNAME("Content"), EditorStringName(EditorStyles)));
581581
bottom_panel->add_theme_style_override(SceneStringName(panel), theme->get_stylebox(SNAME("BottomPanel"), EditorStringName(EditorStyles)));
582-
bottom_panel->get_back_panel()->add_theme_style_override(SceneStringName(panel), theme->get_stylebox(SNAME("BottomPanel"), EditorStringName(EditorStyles)));
583582
distraction_free->set_button_icon(theme->get_icon(SNAME("DistractionFree"), EditorStringName(EditorIcons)));
584583
distraction_free->add_theme_style_override(SceneStringName(pressed), theme->get_stylebox(CoreStringName(normal), "FlatMenuButton"));
585584

@@ -8129,6 +8128,7 @@ EditorNode::EditorNode() {
81298128
// Bottom panels.
81308129

81318130
bottom_panel = memnew(EditorBottomPanel);
8131+
bottom_panel->set_theme_type_variation("BottomPanel");
81328132
center_split->add_child(bottom_panel);
81338133
center_split->set_dragger_visibility(SplitContainer::DRAGGER_HIDDEN);
81348134

0 commit comments

Comments
 (0)