You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #65042 from YuriSizov/editor-docks-tabbar-bg
This commit is contained in:
@@ -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")));
|
||||
|
||||
Reference in New Issue
Block a user