diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-30 18:53:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 18:53:54 +0200 |
commit | e27b61d291ae65cd1171bd32c9b00912dc17c428 (patch) | |
tree | 8b2f4f2f2810f3617419a828d47408b0f73f6514 /editor/editor_node.cpp | |
parent | 706d988baae40da49c942cf4e7180368fc9b1ead (diff) | |
parent | 8b196be85568b95e532d02cb56e68c790dc69f87 (diff) |
Merge pull request #65042 from YuriSizov/editor-docks-tabbar-bg
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 6b68c4127f..0f2e0c8fcb 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -753,6 +753,8 @@ void EditorNode::_notification(int p_what) { gui_base->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("Background"), SNAME("EditorStyles"))); scene_root_parent->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("Content"), SNAME("EditorStyles"))); bottom_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("panel"), SNAME("TabContainer"))); + + tabbar_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("tabbar_background"), SNAME("TabContainer"))); scene_tabs->add_theme_style_override("tab_selected", gui_base->get_theme_stylebox(SNAME("SceneTabFG"), SNAME("EditorStyles"))); scene_tabs->add_theme_style_override("tab_unselected", gui_base->get_theme_stylebox(SNAME("SceneTabBG"), SNAME("EditorStyles"))); @@ -6490,8 +6492,11 @@ EditorNode::EditorNode() { tab_preview->set_position(Point2(2, 2) * EDSCALE); tab_preview_panel->add_child(tab_preview); + tabbar_panel = memnew(PanelContainer); + tabbar_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("tabbar_background"), SNAME("TabContainer"))); + srt->add_child(tabbar_panel); tabbar_container = memnew(HBoxContainer); - srt->add_child(tabbar_container); + tabbar_panel->add_child(tabbar_container); scene_tabs = memnew(TabBar); scene_tabs->add_theme_style_override("tab_selected", gui_base->get_theme_stylebox(SNAME("SceneTabFG"), SNAME("EditorStyles"))); |