summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2022-09-02 17:59:36 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2022-09-07 12:33:02 +0200
commit4cbcb5acdaf314f248337710278df4f3e276f950 (patch)
tree1fa477a4b4532278fe8c2e2c793a0a04ad0eb662 /scene/resources/default_theme
parentb5c053321c89217b1cae0d4670d66a1af0c68bc8 (diff)
Allow SplitContainer to have a grab area larger than its visual grabber
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r--scene/resources/default_theme/default_theme.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 208e28f17a..ab6a093866 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -1013,6 +1013,9 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("separation", "SplitContainer", 12 * scale);
theme->set_constant("separation", "HSplitContainer", 12 * scale);
theme->set_constant("separation", "VSplitContainer", 12 * scale);
+ theme->set_constant("minimum_grab_thickness", "SplitContainer", 6 * scale);
+ theme->set_constant("minimum_grab_thickness", "HSplitContainer", 6 * scale);
+ theme->set_constant("minimum_grab_thickness", "VSplitContainer", 6 * scale);
theme->set_constant("autohide", "SplitContainer", 1 * scale);
theme->set_constant("autohide", "HSplitContainer", 1 * scale);
theme->set_constant("autohide", "VSplitContainer", 1 * scale);