diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-04-07 13:24:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 13:24:01 +0200 |
commit | a13635cdf888c005631b3f8b915005e7855e66af (patch) | |
tree | 07cb09470ae1d741ee2ffc2a9bfe47d654916cd1 /scene/resources/default_theme/default_theme.cpp | |
parent | 920e8067f7ce0938d9ba76bd5300a5c77d1e7f37 (diff) | |
parent | 498d53857891d33dc5c3a5a739d89f69e2a8be56 (diff) | |
download | redot-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.cpp | 6 |
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 |