summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme/default_theme.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-09-01 19:09:33 +0200
committerGitHub <noreply@github.com>2022-09-01 19:09:33 +0200
commit8c7be63588bf3e4ef4b780ff57936c68db5939c7 (patch)
tree781068f8e33aa1704f4fe9d9f4a238397fbee8f1 /scene/resources/default_theme/default_theme.cpp
parentdcd74563b64fb45323c5d99e1382125488b863e8 (diff)
parent15fd025f900de9ff45e60e4b07d8839352d5a1f4 (diff)
Merge pull request #65192 from YuriSizov/control-customizable-cache-p2
Diffstat (limited to 'scene/resources/default_theme/default_theme.cpp')
-rw-r--r--scene/resources/default_theme/default_theme.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 73ad1ceff7..32c3c9fe9e 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -609,11 +609,9 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
// Dialogs
- theme->set_constant("margin", "Dialogs", 8 * scale);
- theme->set_constant("button_margin", "Dialogs", 32 * scale);
-
- // AcceptDialog
-
+ // 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));
// File Dialog