mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix font size inconsistencies
This commit is contained in:
parent
94b2827051
commit
1705273bb8
3 changed files with 14 additions and 8 deletions
|
@ -12,6 +12,10 @@ static constexpr int emojiSize = 14;
|
|||
static constexpr int headerFontSize = 21;
|
||||
static constexpr int typingNotificationFontSize = 11;
|
||||
|
||||
namespace dialogs {
|
||||
static constexpr int labelSize = 15;
|
||||
}
|
||||
|
||||
// Window geometry.
|
||||
namespace window {
|
||||
static constexpr int height = 600;
|
||||
|
@ -39,7 +43,7 @@ static constexpr int cornerRadius = 3;
|
|||
// RoomList specific.
|
||||
namespace roomlist {
|
||||
namespace fonts {
|
||||
static constexpr int heading = 15;
|
||||
static constexpr int heading = 14;
|
||||
static constexpr int badge = 10;
|
||||
static constexpr int bubble = 20;
|
||||
} // namespace fonts
|
||||
|
|
|
@ -148,7 +148,7 @@ RoomInfoListItem::paintEvent(QPaintEvent *event)
|
|||
|
||||
if (width() > ui::sidebar::SmallSize) {
|
||||
font.setPixelSize(conf::roomlist::fonts::heading);
|
||||
font.setWeight(68);
|
||||
font.setWeight(60);
|
||||
p.setFont(font);
|
||||
p.setPen(titlePen);
|
||||
|
||||
|
|
|
@ -54,7 +54,8 @@ CreateRoom::CreateRoom(QWidget *parent)
|
|||
auto presetLayout = new QHBoxLayout;
|
||||
presetLayout->setContentsMargins(0, 10, 0, 10);
|
||||
|
||||
auto visibilityLabel = new QLabel(tr("Room visibility"), this);
|
||||
auto visibilityLabel = new QLabel(tr("Room Visibility"), this);
|
||||
visibilityLabel->setStyleSheet(QString("font-size: %1px;").arg(conf::dialogs::labelSize));
|
||||
visibilityCombo_ = new QComboBox(this);
|
||||
visibilityCombo_->addItem("Private");
|
||||
visibilityCombo_->addItem("Public");
|
||||
|
@ -62,7 +63,8 @@ CreateRoom::CreateRoom(QWidget *parent)
|
|||
visibilityLayout->addWidget(visibilityLabel);
|
||||
visibilityLayout->addWidget(visibilityCombo_, 0, Qt::AlignBottom | Qt::AlignRight);
|
||||
|
||||
auto presetLabel = new QLabel(tr("Room preset"), this);
|
||||
auto presetLabel = new QLabel(tr("Room Preset"), this);
|
||||
presetLabel->setStyleSheet(QString("font-size: %1px;").arg(conf::dialogs::labelSize));
|
||||
presetCombo_ = new QComboBox(this);
|
||||
presetCombo_->addItem("Private Chat");
|
||||
presetCombo_->addItem("Public Chat");
|
||||
|
@ -72,11 +74,11 @@ CreateRoom::CreateRoom(QWidget *parent)
|
|||
presetLayout->addWidget(presetCombo_, 0, Qt::AlignBottom | Qt::AlignRight);
|
||||
|
||||
auto directLabel_ = new QLabel(tr("Direct Chat"), this);
|
||||
directLabel_->setStyleSheet(QString("font-size: %1px;").arg(conf::dialogs::labelSize));
|
||||
directToggle_ = new Toggle(this);
|
||||
directToggle_->setActiveColor(QColor("#38A3D8"));
|
||||
directToggle_->setInactiveColor(QColor("gray"));
|
||||
directToggle_->setState(true);
|
||||
directLabel_->setStyleSheet("font-size: 15px;");
|
||||
|
||||
auto directLayout = new QHBoxLayout;
|
||||
directLayout->setContentsMargins(0, 10, 0, 10);
|
||||
|
|
Loading…
Reference in a new issue