summaryrefslogtreecommitdiffstats
path: root/editor/themes/editor_theme.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2024-01-17 15:03:55 +0100
committerYuri Sizov <yuris@humnom.net>2024-01-17 15:16:53 +0100
commit45eedba1fa992d9ce8fe8e5624a4b8c93875207c (patch)
tree9a327c58264ebdf448079ddfaec117ef8a186b9d /editor/themes/editor_theme.h
parent107f2961ccfac179af7682eb5f6e7ea91e80040c (diff)
downloadredot-engine-45eedba1fa992d9ce8fe8e5624a4b8c93875207c.tar.gz
Improve editor theme generation after the refactor
Diffstat (limited to 'editor/themes/editor_theme.h')
-rw-r--r--editor/themes/editor_theme.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/themes/editor_theme.h b/editor/themes/editor_theme.h
index 41a60fdf96..2cc7ad287e 100644
--- a/editor/themes/editor_theme.h
+++ b/editor/themes/editor_theme.h
@@ -38,6 +38,10 @@ class EditorTheme : public Theme {
static Vector<StringName> editor_theme_types;
+ uint32_t generated_hash = 0;
+ uint32_t generated_fonts_hash = 0;
+ uint32_t generated_icons_hash = 0;
+
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;
@@ -46,6 +50,15 @@ public:
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;
+ void set_generated_hash(uint32_t p_hash) { generated_hash = p_hash; }
+ uint32_t get_generated_hash() const { return generated_hash; }
+
+ void set_generated_fonts_hash(uint32_t p_hash) { generated_fonts_hash = p_hash; }
+ uint32_t get_generated_fonts_hash() const { return generated_fonts_hash; }
+
+ void set_generated_icons_hash(uint32_t p_hash) { generated_icons_hash = p_hash; }
+ uint32_t get_generated_icons_hash() const { return generated_icons_hash; }
+
static void initialize();
static void finalize();
};