summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-03-22 02:43:01 +0100
committerkobewi <kobewi4e@gmail.com>2021-03-23 00:51:16 +0100
commitecff5bc42fe036cd01b480ef09222370df7eeae7 (patch)
tree917c313dd0660768ec5eb2e13334f14a7e86424a /scene/gui/control.h
parent07f076fa4f2896415993bb8e3fb42128423de0d2 (diff)
downloadredot-engine-ecff5bc42fe036cd01b480ef09222370df7eeae7.tar.gz
Add methods to remove theme overrides
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r--scene/gui/control.h7
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;