mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Make Themable pass the current Theme through applyTheme
This reduces boilerplate code and remove the ThemeManager dependency at Thamable subclasses level.
This commit is contained in:
@ -12,13 +12,13 @@ protected:
|
||||
&ThemeManager::themeChanged,
|
||||
owner,
|
||||
[this]() {
|
||||
applyTheme();
|
||||
applyTheme(ThemeManager::instance().getCurrentTheme());
|
||||
});
|
||||
|
||||
applyTheme();
|
||||
applyTheme(ThemeManager::instance().getCurrentTheme());
|
||||
}
|
||||
|
||||
virtual void applyTheme() = 0;
|
||||
virtual void applyTheme(const Theme &theme) = 0;
|
||||
};
|
||||
|
||||
#endif // THEMABLE_H
|
||||
|
||||
Reference in New Issue
Block a user