comparison include/gui/theme.h @ 105:6d8da6e64d61

theme: add dark stylesheet, make it actually usable win32: make the titlebar black where available
author Paper <mrpapersonic@gmail.com>
date Sun, 05 Nov 2023 03:54:26 -0500
parents b315f3759c56
children 2004b41d4a59
comparison
equal deleted inserted replaced
104:27455104ea37 105:6d8da6e64d61
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();
19 bool IsInDarkMode();
20 void RepaintCurrentTheme();
19 21
20 private: 22 private:
21 bool IsInDarkMode();
22 void SetToDarkTheme(); 23 void SetToDarkTheme();
23 void SetToLightTheme(); 24 void SetToLightTheme();
24 void SetStyleSheet(Themes theme); 25 void SetStyleSheet(Themes theme);
25 Themes GetCurrentOSTheme(); 26 Themes GetCurrentOSTheme();
26 Themes theme; 27 Themes theme;