From 284d2003616c65ea4410467b3def9c09b55ecedf Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 27 Mar 2018 20:21:14 +0300 Subject: [PATCH] Fix invite button colors on the system theme fixes #248 --- resources/styles/system.qss | 4 ++-- src/RoomInfoListItem.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/styles/system.qss b/resources/styles/system.qss index ce63f44e..5ebc4dd6 100644 --- a/resources/styles/system.qss +++ b/resources/styles/system.qss @@ -62,7 +62,7 @@ RegisterPage { RoomInfoListItem { qproperty-highlightedBackgroundColor: palette(highlight); - qproperty-hoverBackgroundColor: palette(mid); + qproperty-hoverBackgroundColor: palette(light); qproperty-backgroundColor: palette(window); qproperty-titleColor: palette(text); @@ -71,7 +71,7 @@ RoomInfoListItem { qproperty-highlightedTitleColor: palette(light); qproperty-highlightedSubtitleColor: palette(light); - qproperty-btnColor: palette(light); + qproperty-btnColor: palette(mid); qproperty-btnTextColor: palette(text); qproperty-timestampColor: palette(text); diff --git a/src/RoomInfoListItem.cc b/src/RoomInfoListItem.cc index da896bcd..0c1a89db 100644 --- a/src/RoomInfoListItem.cc +++ b/src/RoomInfoListItem.cc @@ -38,7 +38,7 @@ constexpr int IconSize = 44; constexpr int MaxHeight = IconSize + 2 * Padding; constexpr int InviteBtnX = IconSize + 2 * Padding; -constexpr int InviteBtnY = IconSize / 2 + Padding; +constexpr int InviteBtnY = IconSize / 2 + Padding + Padding / 3; void RoomInfoListItem::init(QWidget *parent)