Mercurial > minori
view include/gui/theme.h @ 103:621084cc542c
resources: add icons
also remove ye olde qdarkstyle, as it's not even used anymore
there's more configuring to OS X bundles now as well, along with
more version info on Windows
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 03 Nov 2023 22:52:41 -0400 |
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