From ccbcfe9fa4df9e3c91a3489ae0937fbf96bc76e9 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 21 Dec 2017 13:41:05 +0200 Subject: [PATCH] Bold room names --- resources/styles/nheko-dark.qss | 4 ++-- resources/styles/nheko.qss | 2 +- src/RoomInfoListItem.cc | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/styles/nheko-dark.qss b/resources/styles/nheko-dark.qss index a730a6e0..970a1d03 100644 --- a/resources/styles/nheko-dark.qss +++ b/resources/styles/nheko-dark.qss @@ -44,10 +44,10 @@ RoomInfoListItem { qproperty-hoverBackgroundColor: #39679e; qproperty-backgroundColor: #383c4a; - qproperty-titleColor: #caccd1; + qproperty-titleColor: #e4e5e8; qproperty-subtitleColor: #caccd1; - qproperty-highlightedTitleColor: #e4e5e8; + qproperty-highlightedTitleColor: #f4f4f5; qproperty-highlightedSubtitleColor: #e4e5e8; qproperty-btnColor: #414A59; diff --git a/resources/styles/nheko.qss b/resources/styles/nheko.qss index 3e740e2a..6bdb6aa6 100644 --- a/resources/styles/nheko.qss +++ b/resources/styles/nheko.qss @@ -46,7 +46,7 @@ RoomInfoListItem { qproperty-subtitleColor: #5d6565; qproperty-highlightedTitleColor: white; - qproperty-highlightedSubtitleColor: white; + qproperty-highlightedSubtitleColor: #f4f4f5; qproperty-btnColor: #ccc; qproperty-btnTextColor: #333; diff --git a/src/RoomInfoListItem.cc b/src/RoomInfoListItem.cc index fa567243..41e9ea86 100644 --- a/src/RoomInfoListItem.cc +++ b/src/RoomInfoListItem.cc @@ -148,6 +148,7 @@ RoomInfoListItem::paintEvent(QPaintEvent *event) if (width() > ui::sidebar::SmallSize) { font.setPixelSize(conf::roomlist::fonts::heading); + font.setWeight(68); p.setFont(font); p.setPen(titlePen); @@ -173,7 +174,7 @@ RoomInfoListItem::paintEvent(QPaintEvent *event) auto userName = metrics.elidedText(lastMsgInfo_.username, Qt::ElideRight, usernameLimit); - font.setBold(true); + font.setWeight(60); p.setFont(font); p.drawText(QPoint(2 * Padding + IconSize, bottom_y), userName);