diff options
author | Joe Donofry <joe@joedonofry.com> | 2019-01-12 14:35:56 +0000 |
---|---|---|
committer | Joe Donofry <joe@joedonofry.com> | 2019-01-12 14:35:56 +0000 |
commit | ae91bab07d737bcf91bb7ae2210b4a74d846b9b7 (patch) | |
tree | 6105723919702b7d0acee300220cafb38e658d48 /src/RoomInfoListItem.h | |
parent | Increase the height of the roomlist items (diff) | |
download | nheko-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.h | 12 |
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_; |