aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/style.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-04-30 18:30:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-04-30 18:30:36 -0400
commit3565aad630864ecdbe53fdaa501ea708555b3c7c (patch)
treec743e4ad0bad39ebdb2f514c7cc52d34a257ebbe /SQLiteStudio3/guiSQLiteStudio/style.h
parent1fdc150116cad39aae5c5da407c3312b47a59e3a (diff)
New upstream version 3.4.4+dfsg.upstream/3.4.4+dfsg
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/style.h')
-rw-r--r--SQLiteStudio3/guiSQLiteStudio/style.h11
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()