Mercurial > minori
view include/gui/theme.h @ 244:3a4aa9b4814c
scripts: convert to use posix shell
it's not like we even need bash anyway
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 22 Jan 2024 22:19:39 -0800 |
parents | 39521c47c7a3 |
children | 862d0d8619f6 |
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() const; bool IsInDarkTheme() const; void RepaintCurrentTheme(); private: void SetToDarkTheme(); void SetToLightTheme(); void SetStyleSheet(Themes theme); Themes GetCurrentOSTheme() const; Themes theme; }; } // namespace Theme #endif // __gui__theme_h