comparison include/gui/theme.h @ 118:39521c47c7a3

*: another huge megacommit, SORRY The torrents page works a lot better now Added the edit option to the anime list right click menu Vectorized currently playing files Available player and extensions are now loaded at runtime from files in (dotpath)/players.json and (dotpath)/extensions.json These paths are not permanent and will likely be moved to (dotpath)/recognition ... ... ...
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 23:40:54 -0500
parents 2004b41d4a59
children 862d0d8619f6
comparison
equal deleted inserted replaced
117:2c1b6782e1d0 118:39521c47c7a3
13 13
14 class Theme final { 14 class Theme final {
15 public: 15 public:
16 Theme(Themes theme = Themes::OS); 16 Theme(Themes theme = Themes::OS);
17 void SetTheme(Themes theme); 17 void SetTheme(Themes theme);
18 Themes GetTheme(); 18 Themes GetTheme() const;
19 bool IsInDarkTheme(); 19 bool IsInDarkTheme() const;
20 void RepaintCurrentTheme(); 20 void RepaintCurrentTheme();
21 21
22 private: 22 private:
23 void SetToDarkTheme(); 23 void SetToDarkTheme();
24 void SetToLightTheme(); 24 void SetToLightTheme();
25 void SetStyleSheet(Themes theme); 25 void SetStyleSheet(Themes theme);
26 Themes GetCurrentOSTheme(); 26 Themes GetCurrentOSTheme() const;
27 Themes theme; 27 Themes theme;
28 }; 28 };
29 29
30 } // namespace Theme 30 } // namespace Theme
31 31