view include/gui/theme.h @ 108:2004b41d4a59

*: huge commit 1. WORKING LOCALIZATION + translation for Spanish and British English 2. idk like 2 changes for the dark theme :)
author Paper <mrpapersonic@gmail.com>
date Sun, 05 Nov 2023 23:31:49 -0500
parents 6d8da6e64d61
children 39521c47c7a3
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();
		bool IsInDarkTheme();
		void RepaintCurrentTheme();

	private:
		void SetToDarkTheme();
		void SetToLightTheme();
		void SetStyleSheet(Themes theme);
		Themes GetCurrentOSTheme();
		Themes theme;
};

} // namespace Theme

#endif // __gui__theme_h