Make Themable keep the current theme for convenience

This commit is contained in:
luisangelsm
2026-01-20 20:41:04 +01:00
parent edd5bbc69c
commit bd4c5eace0
2 changed files with 6 additions and 3 deletions

View File

@ -12,13 +12,16 @@ protected:
&ThemeManager::themeChanged,
owner,
[this]() {
applyTheme(ThemeManager::instance().getCurrentTheme());
theme = ThemeManager::instance().getCurrentTheme();
applyTheme(theme);
});
applyTheme(ThemeManager::instance().getCurrentTheme());
}
virtual void applyTheme(const Theme &theme) = 0;
Theme theme;
};
#endif // THEMABLE_H