mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Small stylistic changes
This commit is contained in:
parent
532b1ab38f
commit
e8aae26aea
3 changed files with 9 additions and 12 deletions
|
@ -212,12 +212,10 @@ void ChatPage::changeTopRoomInfo(const RoomInfo &info)
|
|||
top_bar_->updateRoomName(info.name());
|
||||
top_bar_->updateRoomTopic(info.topic());
|
||||
|
||||
if (room_avatars_.contains(info.id())) {
|
||||
QIcon icon(room_avatars_.value(info.id()));
|
||||
top_bar_->updateRoomAvatar(icon);
|
||||
} else {
|
||||
if (room_avatars_.contains(info.id()))
|
||||
top_bar_->updateRoomAvatar(room_avatars_.value(info.id()).toImage());
|
||||
else
|
||||
top_bar_->updateRoomAvatarFromName(info.name());
|
||||
}
|
||||
|
||||
current_room_ = info;
|
||||
}
|
||||
|
|
|
@ -29,8 +29,7 @@ RoomInfoListItem::RoomInfoListItem(RoomInfo info, QWidget *parent)
|
|||
, max_height_(60)
|
||||
{
|
||||
normal_style_ =
|
||||
"QWidget { background-color: #5d6565; color: #ebebeb;"
|
||||
"border-bottom: 1px solid #171919;}"
|
||||
"QWidget { color: #ebebeb; background-color: #232626; border-bottom: 1px solid #171919;}"
|
||||
"QLabel { border: none; }";
|
||||
|
||||
pressed_style_ =
|
||||
|
|
|
@ -23,8 +23,8 @@ TopRoomBar::TopRoomBar(QWidget *parent)
|
|||
: QWidget(parent)
|
||||
{
|
||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
setMinimumSize(QSize(0, 70));
|
||||
setStyleSheet("background-color: #171919; color: #ebebeb;");
|
||||
setMinimumSize(QSize(0, 65));
|
||||
setStyleSheet("background-color: #232626; color: #ebebeb;");
|
||||
|
||||
top_layout_ = new QHBoxLayout();
|
||||
top_layout_->setSpacing(10);
|
||||
|
@ -33,17 +33,17 @@ TopRoomBar::TopRoomBar(QWidget *parent)
|
|||
avatar_ = new Avatar(this);
|
||||
avatar_->setLetter(QChar('?'));
|
||||
avatar_->setBackgroundColor(QColor("#ebebeb"));
|
||||
avatar_->setSize(45);
|
||||
avatar_->setSize(35);
|
||||
|
||||
text_layout_ = new QVBoxLayout();
|
||||
text_layout_->setSpacing(0);
|
||||
text_layout_->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
name_label_ = new QLabel(this);
|
||||
name_label_->setStyleSheet("font-size: 11pt;");
|
||||
name_label_->setStyleSheet("font-size: 14px; font-weight: 600;");
|
||||
|
||||
topic_label_ = new QLabel(this);
|
||||
topic_label_->setStyleSheet("font-size: 10pt; color: #6c7278;");
|
||||
topic_label_->setStyleSheet("font-size: 12px;");
|
||||
|
||||
text_layout_->addWidget(name_label_);
|
||||
text_layout_->addWidget(topic_label_);
|
||||
|
|
Loading…
Reference in a new issue