diff options
author | kobewi <kobewi4e@gmail.com> | 2021-03-22 02:43:01 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-03-23 00:51:16 +0100 |
commit | ecff5bc42fe036cd01b480ef09222370df7eeae7 (patch) | |
tree | 917c313dd0660768ec5eb2e13334f14a7e86424a /scene/gui/control.h | |
parent | 07f076fa4f2896415993bb8e3fb42128423de0d2 (diff) | |
download | redot-engine-ecff5bc42fe036cd01b480ef09222370df7eeae7.tar.gz |
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 8981e05872..422bc12aa3 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; |