summaryrefslogtreecommitdiffstats
path: root/scene/resources/default_theme/default_theme.cpp
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-04-07 13:24:01 +0200
committerGitHub <noreply@github.com>2023-04-07 13:24:01 +0200
commita13635cdf888c005631b3f8b915005e7855e66af (patch)
tree07cb09470ae1d741ee2ffc2a9bfe47d654916cd1 /scene/resources/default_theme/default_theme.cpp
parent920e8067f7ce0938d9ba76bd5300a5c77d1e7f37 (diff)
parent498d53857891d33dc5c3a5a739d89f69e2a8be56 (diff)
downloadredot-engine-a13635cdf888c005631b3f8b915005e7855e66af.tar.gz
Merge pull request #70901 from timothyqiu/tree-scroll-offset
Add scrollbar offset theme constants to Tree
Diffstat (limited to 'scene/resources/default_theme/default_theme.cpp')
-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