diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-20 20:51:07 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-20 20:51:07 +0100 |
commit | 6bdc75d07319b3b2a846ee4a905288ec0d9371f6 (patch) | |
tree | 855cd92fb12a652f9959d0a1e64b15db82ba3e79 /src/timeline/TimelineViewManager.h | |
parent | Clear user colors on theme change (diff) | |
download | nheko-6bdc75d07319b3b2a846ee4a905288ec0d9371f6.tar.xz |
Reset user colors on theme change (in qml timeline)
Diffstat (limited to '')
-rw-r--r-- | src/timeline/TimelineViewManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h index 625999c9..338101c7 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h @@ -40,6 +40,7 @@ public: Q_INVOKABLE TimelineModel *activeTimeline() const { return timeline_; } Q_INVOKABLE bool isInitialSync() const { return isInitialSync_; } Q_INVOKABLE void openImageOverlay(QString mxcUrl, QString eventId) const; + Q_INVOKABLE QColor userColor(QString id, QColor background); signals: void clearRoomMessageCount(QString roomid); @@ -118,4 +119,5 @@ private: QString replyingEvent_; QSharedPointer<UserSettings> settings; + QHash<QString, QColor> userColors; }; |