mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Paint RoomList's background (#137)
This commit is contained in:
parent
f0ecf6eee6
commit
54cf3418bc
4 changed files with 29 additions and 7 deletions
|
@ -68,6 +68,9 @@ public slots:
|
|||
void closeLeaveRoomDialog(bool leaving, const QString &room_id);
|
||||
void clearRoomMessageCount(const QString &room_id);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
private:
|
||||
void calculateUnreadMessageCount();
|
||||
|
||||
|
|
|
@ -12,6 +12,11 @@ TimelineView > * {
|
|||
background-color: #383c4a;
|
||||
}
|
||||
|
||||
RoomList,
|
||||
RoomList > * {
|
||||
background-color: #383c4a;
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
qproperty-foregroundColor: #caccd1;
|
||||
qproperty-backgroundColor: #333;
|
||||
|
|
|
@ -12,6 +12,11 @@ TimelineView > * {
|
|||
background-color: white;
|
||||
}
|
||||
|
||||
RoomList,
|
||||
RoomList > * {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
qproperty-foregroundColor: #333;
|
||||
}
|
||||
|
|
|
@ -281,3 +281,12 @@ RoomList::closeLeaveRoomDialog(bool leaving, const QString &room_id)
|
|||
client_->leaveRoom(room_id);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
RoomList::paintEvent(QPaintEvent *)
|
||||
{
|
||||
QStyleOption opt;
|
||||
opt.init(this);
|
||||
QPainter p(this);
|
||||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue