summaryrefslogtreecommitdiffstats
path: root/scene/gui/dialogs.h
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/gui/dialogs.h
parentdcd74563b64fb45323c5d99e1382125488b863e8 (diff)
parent15fd025f900de9ff45e60e4b07d8839352d5a1f4 (diff)
downloadredot-engine-8c7be63588bf3e4ef4b780ff57936c68db5939c7.tar.gz
Merge pull request #65192 from YuriSizov/control-customizable-cache-p2
Diffstat (limited to 'scene/gui/dialogs.h')
-rw-r--r--scene/gui/dialogs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/dialogs.h b/scene/gui/dialogs.h
index 9ebf5ddfb2..8ba9c93861 100644
--- a/scene/gui/dialogs.h
+++ b/scene/gui/dialogs.h
@@ -52,6 +52,12 @@ class AcceptDialog : public Window {
bool hide_on_ok = true;
bool close_on_escape = true;
+ struct ThemeCache {
+ Ref<StyleBox> panel_style;
+ int margin = 0;
+ int button_margin = 0;
+ } theme_cache;
+
void _custom_action(const String &p_action);
void _update_child_rects();
@@ -62,6 +68,7 @@ class AcceptDialog : public Window {
protected:
virtual Size2 _get_contents_minimum_size() const override;
+ virtual void _update_theme_item_cache() override;
void _notification(int p_what);
static void _bind_methods();