DolphinQt/Settings: Add option to force the light or dark style on Windows.

This commit is contained in:
Admiral H. Curtiss
2023-11-04 18:25:42 +01:00
parent 6d585b6eb6
commit 8f55c28472
3 changed files with 42 additions and 10 deletions

View File

@ -60,8 +60,20 @@ public:
void SetUserStyleName(const QString& stylesheet_name);
QString GetUserStyleName() const;
void SetUserStylesEnabled(bool enabled);
bool AreUserStylesEnabled() const;
enum class StyleType : int
{
System = 0,
Light = 1,
Dark = 2,
User = 3,
MinValue = 0,
MaxValue = 3,
};
void SetStyleType(StyleType type);
StyleType GetStyleType() const;
// this evaluates the current stylesheet settings and refreshes the GUI with them
void ApplyStyle();