Skip to content

Commit fa798ca

Browse files
committed
Refactor EditorBottomPanel using theme system
1 parent f594b7b commit fa798ca

File tree

6 files changed

+110
-269
lines changed

6 files changed

+110
-269
lines changed

editor/editor_node.cpp

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

576576
editor_main_screen->add_theme_style_override(SceneStringName(panel), theme->get_stylebox(SNAME("Content"), EditorStringName(EditorStyles)));
577577
bottom_panel->add_theme_style_override(SceneStringName(panel), theme->get_stylebox(SNAME("BottomPanel"), EditorStringName(EditorStyles)));
578-
bottom_panel->get_back_panel()->add_theme_style_override(SceneStringName(panel), theme->get_stylebox(SNAME("BottomPanel"), EditorStringName(EditorStyles)));
579578
distraction_free->set_button_icon(theme->get_icon(SNAME("DistractionFree"), EditorStringName(EditorIcons)));
580579
distraction_free->add_theme_style_override(SceneStringName(pressed), theme->get_stylebox(CoreStringName(normal), "FlatMenuButton"));
581580

@@ -8024,6 +8023,7 @@ EditorNode::EditorNode() {
80248023
// Bottom panels.
80258024

80268025
bottom_panel = memnew(EditorBottomPanel);
8026+
bottom_panel->set_theme_type_variation("BottomPanel");
80278027
center_split->add_child(bottom_panel);
80288028
center_split->set_dragger_visibility(SplitContainer::DRAGGER_HIDDEN);
80298029

0 commit comments

Comments
 (0)