From 97ca8d0ed109dc2be80e459e4b2a4dbafa1aced8 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 1 Jul 2017 15:52:46 +0300 Subject: Remove hardcoded font sizes on the top bars and text input --- src/TopRoomBar.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/TopRoomBar.cc') diff --git a/src/TopRoomBar.cc b/src/TopRoomBar.cc index 4b4c8aa5..74e255a0 100644 --- a/src/TopRoomBar.cc +++ b/src/TopRoomBar.cc @@ -41,11 +41,18 @@ TopRoomBar::TopRoomBar(QWidget *parent) text_layout_->setSpacing(0); text_layout_->setContentsMargins(0, 0, 0, 0); + QFont font; + font.setPointSize(this->font().pointSize() * RoomNameFontRatio); + font.setBold(true); + name_label_ = new QLabel(this); - name_label_->setStyleSheet("font-size: 14px; font-weight: 600;"); + name_label_->setFont(font); + + font.setBold(false); + font.setPointSize(this->font().pointSize() * RoomDescriptionFontRatio); topic_label_ = new QLabel(this); - topic_label_->setStyleSheet("font-size: 12px;"); + topic_label_->setFont(font); text_layout_->addWidget(name_label_); text_layout_->addWidget(topic_label_); -- cgit 1.5.1