summaryrefslogtreecommitdiffstats
path: root/scene/resources/default_theme
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2023-01-04 10:59:34 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2023-04-06 15:04:28 +0800
commit498d53857891d33dc5c3a5a739d89f69e2a8be56 (patch)
tree49ebdeef22e33e884bc5ac8363a76173b7271e95 /scene/resources/default_theme
parent49a196277f86977d08cc10b6bb878427ae54a964 (diff)
downloadredot-engine-498d53857891d33dc5c3a5a739d89f69e2a8be56.tar.gz
Add scrollbar offset theme constants to Tree
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r--scene/resources/default_theme/default_theme.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 4c7525c745..16b1ed0703 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -783,6 +783,12 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("scroll_speed", "Tree", 12);
theme->set_constant("outline_size", "Tree", 0);
theme->set_constant("icon_max_width", "Tree", 0);
+ theme->set_constant("scrollbar_margin_left", "Tree", -1);
+ theme->set_constant("scrollbar_margin_top", "Tree", -1);
+ theme->set_constant("scrollbar_margin_right", "Tree", -1);
+ theme->set_constant("scrollbar_margin_bottom", "Tree", -1);
+ theme->set_constant("scrollbar_h_separation", "Tree", 4 * scale);
+ theme->set_constant("scrollbar_v_separation", "Tree", 4 * scale);
// ItemList