summaryrefslogtreecommitdiffstats
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-30 18:53:54 +0200
committerGitHub <noreply@github.com>2022-08-30 18:53:54 +0200
commite27b61d291ae65cd1171bd32c9b00912dc17c428 (patch)
tree8b2f4f2f2810f3617419a828d47408b0f73f6514 /scene/gui
parent706d988baae40da49c942cf4e7180368fc9b1ead (diff)
parent8b196be85568b95e532d02cb56e68c790dc69f87 (diff)
downloadredot-engine-e27b61d291ae65cd1171bd32c9b00912dc17c428.tar.gz
Merge pull request #65042 from YuriSizov/editor-docks-tabbar-bg
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tab_container.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index 861a3050cb..3e04ebee6a 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.