Changed theme notifications to work with newly introduced reference counted connections. Closes #21265, Fixes #6145.
Probably fixes more theme notification related open issues, should check.
This commit is contained in:
parent
c23710adde
commit
2e0a94edc6
2 changed files with 116 additions and 38 deletions
|
|
@ -47,12 +47,6 @@ class Theme : public Resource {
|
|||
RES_BASE_EXTENSION("theme");
|
||||
|
||||
static Ref<Theme> default_theme;
|
||||
|
||||
//keep a reference count to font, so each time the font changes, we emit theme changed too
|
||||
Map<Ref<Font>, int> font_refcount;
|
||||
|
||||
void _ref_font(Ref<Font> p_sc);
|
||||
void _unref_font(Ref<Font> p_sc);
|
||||
void _emit_theme_changed();
|
||||
|
||||
HashMap<StringName, HashMap<StringName, Ref<Texture> > > icon_map;
|
||||
|
|
@ -190,6 +184,7 @@ public:
|
|||
void get_type_list(List<StringName> *p_list) const;
|
||||
|
||||
void copy_default_theme();
|
||||
void clear();
|
||||
|
||||
Theme();
|
||||
~Theme();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue