Skip to content
Snippets Groups Projects
Commit e8aae26a authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Small stylistic changes

parent 532b1ab3
No related branches found
No related tags found
No related merge requests found
......@@ -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_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment