summary refs log tree commit diff
path: root/src/RoomInfoListItem.h
diff options
context:
space:
mode:
authorJoe Donofry <joe@joedonofry.com>2019-01-12 14:35:56 +0000
committerJoe Donofry <joe@joedonofry.com>2019-01-12 14:35:56 +0000
commitae91bab07d737bcf91bb7ae2210b4a74d846b9b7 (patch)
tree6105723919702b7d0acee300220cafb38e658d48 /src/RoomInfoListItem.h
parentIncrease the height of the roomlist items (diff)
downloadnheko-ae91bab07d737bcf91bb7ae2210b4a74d846b9b7.tar.xz
Tweak some of the colors in the CSS rules for nheko.
Add room list hover title/subtitle color change support.
Diffstat (limited to '')
-rw-r--r--src/RoomInfoListItem.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/RoomInfoListItem.h b/src/RoomInfoListItem.h
index 46baa40d..4f3e9372 100644
--- a/src/RoomInfoListItem.h
+++ b/src/RoomInfoListItem.h
@@ -55,6 +55,11 @@ class RoomInfoListItem : public QWidget
         Q_PROPERTY(QColor highlightedSubtitleColor READ highlightedSubtitleColor WRITE
                      setHighlightedSubtitleColor)
 
+        Q_PROPERTY(
+          QColor hoverTitleColor READ hoverTitleColor WRITE setHoverTitleColor)
+        Q_PROPERTY(QColor hoverSubtitleColor READ hoverSubtitleColor WRITE
+                     setHoverSubtitleColor)
+
         Q_PROPERTY(QColor btnColor READ btnColor WRITE setBtnColor)
         Q_PROPERTY(QColor btnTextColor READ btnTextColor WRITE setBtnTextColor)
 
@@ -74,6 +79,8 @@ public:
 
         QColor highlightedBackgroundColor() const { return highlightedBackgroundColor_; }
         QColor hoverBackgroundColor() const { return hoverBackgroundColor_; }
+        QColor hoverTitleColor() const { return hoverTitleColor_; }
+        QColor hoverSubtitleColor() const { return hoverSubtitleColor_; }
         QColor backgroundColor() const { return backgroundColor_; }
         QColor avatarBgColor() const { return avatarBgColor_; }
         QColor avatarFgColor() const { return avatarFgColor_; }
@@ -93,6 +100,8 @@ public:
 
         void setHighlightedBackgroundColor(QColor &color) { highlightedBackgroundColor_ = color; }
         void setHoverBackgroundColor(QColor &color) { hoverBackgroundColor_ = color; }
+        void setHoverSubtitleColor(QColor &color) { hoverSubtitleColor_ = color; }
+        void setHoverTitleColor(QColor &color) { hoverTitleColor_ = color; }
         void setBackgroundColor(QColor &color) { backgroundColor_ = color; }
         void setTimestampColor(QColor &color) { timestampColor_ = color; }
         void setAvatarFgColor(QColor &color) { avatarFgColor_ = color; }
@@ -186,6 +195,9 @@ private:
         QColor titleColor_;
         QColor subtitleColor_;
 
+        QColor hoverTitleColor_;
+        QColor hoverSubtitleColor_;
+
         QColor btnColor_;
         QColor btnTextColor_;