sneedmc/application/themes/SystemTheme.h
Petr Mrázek ceb5fc6d75 GH-1790 do not apply system theme on launch if it is selected
This prevents some ugly colors to show up on macOS in most cases.
It still looks ugly right after you switch to the it though.
2017-01-18 02:48:29 +01:00

25 lines
491 B
C++

#pragma once
#include "ITheme.h"
class SystemTheme: public ITheme
{
public:
SystemTheme();
virtual ~SystemTheme() {}
void apply(bool initial) override;
QString id() override;
QString name() override;
QString qtTheme() override;
bool hasStyleSheet() override;
QString appStyleSheet() override;
bool hasColorScheme() override;
QPalette colorScheme() override;
double fadeAmount() override;
QColor fadeColor() override;
private:
QPalette systemPalette;
QString systemTheme;
};