Mercurial > minori
view include/gui/theme.h @ 104:27455104ea37
about: switch to using HTML
it's still generated at runtime, but only once now
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 02:35:27 -0500 |
parents | b315f3759c56 |
children | 6d8da6e64d61 |
line wrap: on
line source
#ifndef __gui__theme_h #define __gui__theme_h #include <QStyle> enum class Themes { OS, LIGHT, DARK }; namespace Theme { class Theme final { public: Theme(Themes theme = Themes::OS); void SetTheme(Themes theme); Themes GetTheme(); private: bool IsInDarkMode(); void SetToDarkTheme(); void SetToLightTheme(); void SetStyleSheet(Themes theme); Themes GetCurrentOSTheme(); Themes theme; }; } // namespace Theme #endif // __gui__theme_h