2016-10-21 12:37:26 +05:30
|
|
|
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
#include <QPalette>
|
|
|
|
|
2017-01-16 03:26:03 +05:30
|
|
|
class QStyle;
|
|
|
|
|
2016-10-21 12:37:26 +05:30
|
|
|
class ITheme
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~ITheme() {}
|
2017-01-18 07:15:04 +05:30
|
|
|
virtual void apply(bool initial);
|
2016-10-21 12:37:26 +05:30
|
|
|
virtual QString id() = 0;
|
|
|
|
virtual QString name() = 0;
|
2017-01-16 03:26:03 +05:30
|
|
|
virtual bool hasStyleSheet() = 0;
|
2016-10-21 12:37:26 +05:30
|
|
|
virtual QString appStyleSheet() = 0;
|
2016-10-22 05:13:36 +05:30
|
|
|
virtual QString qtTheme() = 0;
|
2017-01-16 03:26:03 +05:30
|
|
|
virtual bool hasColorScheme() = 0;
|
2016-10-21 12:37:26 +05:30
|
|
|
virtual QPalette colorScheme() = 0;
|
2016-11-06 08:59:12 +05:30
|
|
|
virtual QColor fadeColor() = 0;
|
|
|
|
virtual double fadeAmount() = 0;
|
2016-11-06 10:18:52 +05:30
|
|
|
virtual QStringList searchPaths()
|
|
|
|
{
|
|
|
|
return {};
|
|
|
|
}
|
2016-11-06 08:59:12 +05:30
|
|
|
|
|
|
|
static QPalette fadeInactive(QPalette in, qreal bias, QColor color);
|
2016-10-21 12:37:26 +05:30
|
|
|
};
|