summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/style.h
blob: ccb5e9e4cabde5881a31508703cbe38c4c6672a3 (plain) (blame)
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
28
29
#ifndef STYLE_H
#define STYLE_H

#include "extendedpalette.h"
#include <QPalette>
#include <QProxyStyle>


class Style : public QProxyStyle
{
    public:
        static Style* getInstance();

        const ExtendedPalette &extendedPalette() const;
        void setStyle(QStyle* style, const QString& styleName);
        QString name() const;

    private:
        static Style* instance;

        Style(QStyle* style);

        ExtendedPalette extPalette;
        QPalette initialPalette;
};

#define STYLE Style::getInstance()

#endif // STYLE_H