diff options
author | Yuri Sizov <yuris@humnom.net> | 2022-08-29 17:40:17 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2022-08-29 23:43:32 +0300 |
commit | 8b196be85568b95e532d02cb56e68c790dc69f87 (patch) | |
tree | 4514a87271176ba390626c20fc458d25a529ef04 /scene/gui | |
parent | 051f24b067642a241d0a4acbb1b7644e11700bfc (diff) |
Add background to TabContainer's tabbar and editor docks
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tab_container.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 10a6d18330..a981cda485 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -163,6 +163,10 @@ void TabContainer::_notification(int p_what) { int header_height = _get_top_margin(); + // Draw background for the tabbar. + Ref<StyleBox> tabbar_background = get_theme_stylebox(SNAME("tabbar_background")); + tabbar_background->draw(canvas, Rect2(0, 0, size.width, header_height)); + // Draw the background for the tab's content. panel->draw(canvas, Rect2(0, header_height, size.width, size.height - header_height)); // Draw the popup menu. |