summaryrefslogtreecommitdiffstats
path: root/editor/editor_themes.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_themes.h')
-rw-r--r--editor/editor_themes.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/editor/editor_themes.h b/editor/editor_themes.h
index 5949c17201..7ca0050103 100644
--- a/editor/editor_themes.h
+++ b/editor/editor_themes.h
@@ -53,6 +53,22 @@ public:
static HashSet<StringName> &get_color_conversion_exceptions() { return color_conversion_exceptions; };
};
+class EditorTheme : public Theme {
+ GDCLASS(EditorTheme, Theme);
+
+ static Vector<StringName> editor_theme_types;
+
+public:
+ virtual Color get_color(const StringName &p_name, const StringName &p_theme_type) const override;
+ virtual int get_constant(const StringName &p_name, const StringName &p_theme_type) const override;
+ virtual Ref<Font> get_font(const StringName &p_name, const StringName &p_theme_type) const override;
+ virtual int get_font_size(const StringName &p_name, const StringName &p_theme_type) const override;
+ virtual Ref<Texture2D> get_icon(const StringName &p_name, const StringName &p_theme_type) const override;
+ virtual Ref<StyleBox> get_stylebox(const StringName &p_name, const StringName &p_theme_type) const override;
+
+ EditorTheme();
+};
+
Ref<Theme> create_editor_theme(Ref<Theme> p_theme = nullptr);
Ref<Theme> create_custom_theme(Ref<Theme> p_theme = nullptr);