diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-01-04 10:59:34 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-04-06 15:04:28 +0800 |
commit | 498d53857891d33dc5c3a5a739d89f69e2a8be56 (patch) | |
tree | 49ebdeef22e33e884bc5ac8363a76173b7271e95 /scene/resources/default_theme | |
parent | 49a196277f86977d08cc10b6bb878427ae54a964 (diff) | |
download | redot-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.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 |