wip: dark/light mode adaptation

This commit is contained in:
Hane 2024-11-20 19:21:37 +01:00
commit 13855c2e6f
10 changed files with 125 additions and 14 deletions

View file

@ -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