diff options
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/style.h')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/style.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/style.h b/SQLiteStudio3/guiSQLiteStudio/style.h index ccb5e9e..82d79bc 100644 --- a/SQLiteStudio3/guiSQLiteStudio/style.h +++ b/SQLiteStudio3/guiSQLiteStudio/style.h @@ -5,15 +5,23 @@ #include <QPalette> #include <QProxyStyle> +class CfgEntry; class Style : public QProxyStyle { + Q_OBJECT + public: static Style* getInstance(); + static bool isDark(const QStyle* style); const ExtendedPalette &extendedPalette() const; void setStyle(QStyle* style, const QString& styleName); QString name() const; + bool isDark() const; + + protected: + bool eventFilter(QObject *obj, QEvent *ev) override; private: static Style* instance; @@ -22,6 +30,9 @@ class Style : public QProxyStyle ExtendedPalette extPalette; QPalette initialPalette; + + signals: + void paletteChanged(); }; #define STYLE Style::getInstance() |
