summaryrefslogtreecommitdiffstats
path: root/application/themes/ITheme.h
blob: c2347cf616151c88fd4b6497919e3c5e61b5ec72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <QString>
#include <QPalette>

class QStyle;

class ITheme
{
public:
    virtual ~ITheme() {}
    virtual void apply(bool initial);
    virtual QString id() = 0;
    virtual QString name() = 0;
    virtual bool hasStyleSheet() = 0;
    virtual QString appStyleSheet() = 0;
    virtual QString qtTheme() = 0;
    virtual bool hasColorScheme() = 0;
    virtual QPalette colorScheme() = 0;
    virtual QColor fadeColor() = 0;
    virtual double fadeAmount() = 0;
    virtual QStringList searchPaths()
    {
        return {};
    }

    static QPalette fadeInactive(QPalette in, qreal bias, QColor color);
};