diff options
author | Yuri Sizov <yuris@humnom.net> | 2022-09-07 00:55:57 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2022-09-07 01:42:11 +0300 |
commit | 5eaf82b4f0a242c0cd6cb04ace0cf3a883a842ab (patch) | |
tree | bfeeffb96e4beb070f17a5b624aadae40409a238 /scene/resources/default_theme | |
parent | 432c4c40a9d29c127a5957944ca8f805dfb836ce (diff) |
Make AcceptDialog and derivatives utilize StyleBox fully
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 208e28f17a..7dd5b04fc7 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -610,9 +610,8 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const // Dialogs // AcceptDialog is currently the base dialog, so this defines styles for all extending nodes. - theme->set_constant("margin", "AcceptDialog", 8 * scale); - theme->set_constant("button_margin", "AcceptDialog", 32 * scale); - theme->set_stylebox("panel", "AcceptDialog", make_flat_stylebox(style_popup_color, 0, 0, 0, 0)); + theme->set_stylebox("panel", "AcceptDialog", make_flat_stylebox(style_popup_color, 8 * scale, 8 * scale, 8 * scale, 8 * scale)); + theme->set_constant("buttons_separation", "AcceptDialog", 10 * scale); // File Dialog |