summary refs log tree commit diff
path: root/src/RoomInfoListItem.h
diff options
context:
space:
mode:
authorredsky17 <joedonofry@gmail.com>2019-01-12 22:03:25 +0000
committerredsky17 <joedonofry@gmail.com>2019-01-12 22:03:25 +0000
commit3fceaeb203d63eac0afe05d2b11342fd6c1994be (patch)
tree038137ce684e32390b2e5eabd5096ddcfb09a85e /src/RoomInfoListItem.h
parentTweak some of the colors in the CSS rules for nheko. (diff)
downloadnheko-3fceaeb203d63eac0afe05d2b11342fd6c1994be.tar.xz
Add hover color for timestamp.
Update dark and system themes to provide
colors for the hover states for title, subtitle, and timestamp.
Diffstat (limited to 'src/RoomInfoListItem.h')
-rw-r--r--src/RoomInfoListItem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RoomInfoListItem.h b/src/RoomInfoListItem.h
index 4f3e9372..f613e321 100644
--- a/src/RoomInfoListItem.h
+++ b/src/RoomInfoListItem.h
@@ -49,6 +49,8 @@ class RoomInfoListItem : public QWidget
         Q_PROPERTY(QColor timestampColor READ timestampColor WRITE setTimestampColor)
         Q_PROPERTY(QColor highlightedTimestampColor READ highlightedTimestampColor WRITE
                      setHighlightedTimestampColor)
+        Q_PROPERTY(QColor hoverTimestampColor READ hoverTimestampColor WRITE
+                     setHoverTimestampColor)
 
         Q_PROPERTY(
           QColor highlightedTitleColor READ highlightedTitleColor WRITE setHighlightedTitleColor)
@@ -81,6 +83,7 @@ public:
         QColor hoverBackgroundColor() const { return hoverBackgroundColor_; }
         QColor hoverTitleColor() const { return hoverTitleColor_; }
         QColor hoverSubtitleColor() const { return hoverSubtitleColor_; }
+        QColor hoverTimestampColor() const { return hoverTimestampColor_; }
         QColor backgroundColor() const { return backgroundColor_; }
         QColor avatarBgColor() const { return avatarBgColor_; }
         QColor avatarFgColor() const { return avatarFgColor_; }
@@ -102,6 +105,7 @@ public:
         void setHoverBackgroundColor(QColor &color) { hoverBackgroundColor_ = color; }
         void setHoverSubtitleColor(QColor &color) { hoverSubtitleColor_ = color; }
         void setHoverTitleColor(QColor &color) { hoverTitleColor_ = color; }
+        void setHoverTimestampColor(QColor &color) { hoverTimestampColor_ = color; }
         void setBackgroundColor(QColor &color) { backgroundColor_ = color; }
         void setTimestampColor(QColor &color) { timestampColor_ = color; }
         void setAvatarFgColor(QColor &color) { avatarFgColor_ = color; }
@@ -210,6 +214,7 @@ private:
 
         QColor timestampColor_;
         QColor highlightedTimestampColor_;
+        QColor hoverTimestampColor_;
 
         QColor avatarBgColor_;
         QColor avatarFgColor_;