From 15fd025f900de9ff45e60e4b07d8839352d5a1f4 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Thu, 1 Sep 2022 13:38:08 +0300 Subject: Add dumb and manual theme caching systems to Window --- scene/resources/default_theme/default_theme.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scene/resources/default_theme') 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, const Ref &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 -- cgit v1.2.3