wip: dark/light mode adaptation
This commit is contained in:
parent
0bf8b321ae
commit
13855c2e6f
10 changed files with 125 additions and 14 deletions
|
|
@ -22,6 +22,12 @@ enum CustomQEvent {
|
|||
EndpointRoleChange = 1007
|
||||
};
|
||||
|
||||
class DarkModeEventFilter : public QAbstractNativeEventFilter {
|
||||
|
||||
public:
|
||||
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *) override;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class CustomWidgetEvent : public QEvent {
|
||||
|
||||
|
|
@ -31,10 +37,6 @@ public:
|
|||
};
|
||||
//Q_DECLARE_METATYPE(EndpointWidgetEvent)
|
||||
|
||||
|
||||
//todo: TEST. TEST.
|
||||
//#include "qtvisuals.h"
|
||||
|
||||
class ExtendedCheckBox : public QCheckBox {
|
||||
Q_OBJECT
|
||||
protected:
|
||||
|
|
@ -47,7 +49,6 @@ public:
|
|||
//B(int x) : A(x) { }
|
||||
};
|
||||
|
||||
|
||||
class SessionWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue