mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Make Themable keep the current theme for convenience
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user