diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-31 20:52:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 20:52:19 +0200 |
commit | 5d0cc7c15f41b8a361ca1559c83a5ccdaeb5a405 (patch) | |
tree | e5ddae32ce91e9419b33a0e6932437f55bd4f1be /scene/gui/control.h | |
parent | 8621c86f4d6b67fdc569425eaa31c211599bf2de (diff) | |
parent | 5950482b86d3b16be2e738465c24f105b8dcdd10 (diff) | |
download | redot-engine-5d0cc7c15f41b8a361ca1559c83a5ccdaeb5a405.tar.gz |
Merge pull request #47252 from KoBeWi/themecide
Add methods to remove theme overrides
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r-- | scene/gui/control.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h index a911d69c3f..184b2df6d3 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -459,6 +459,13 @@ public: void add_theme_color_override(const StringName &p_name, const Color &p_color); void add_theme_constant_override(const StringName &p_name, int p_constant); + void remove_theme_icon_override(const StringName &p_name); + void remove_theme_style_override(const StringName &p_name); + void remove_theme_font_override(const StringName &p_name); + void remove_theme_font_size_override(const StringName &p_name); + void remove_theme_color_override(const StringName &p_name); + void remove_theme_constant_override(const StringName &p_name); + Ref<Texture2D> get_theme_icon(const StringName &p_name, const StringName &p_node_type = StringName()) const; Ref<StyleBox> get_theme_stylebox(const StringName &p_name, const StringName &p_node_type = StringName()) const; Ref<Font> get_theme_font(const StringName &p_name, const StringName &p_node_type = StringName()) const; |