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

Paint RoomList's background (#137)

parent f0ecf6ee
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,9 @@ public slots: ...@@ -68,6 +68,9 @@ public slots:
void closeLeaveRoomDialog(bool leaving, const QString &room_id); void closeLeaveRoomDialog(bool leaving, const QString &room_id);
void clearRoomMessageCount(const QString &room_id); void clearRoomMessageCount(const QString &room_id);
protected:
void paintEvent(QPaintEvent *event) override;
private: private:
void calculateUnreadMessageCount(); void calculateUnreadMessageCount();
......
...@@ -12,6 +12,11 @@ TimelineView > * { ...@@ -12,6 +12,11 @@ TimelineView > * {
background-color: #383c4a; background-color: #383c4a;
} }
RoomList,
RoomList > * {
background-color: #383c4a;
}
FlatButton { FlatButton {
qproperty-foregroundColor: #caccd1; qproperty-foregroundColor: #caccd1;
qproperty-backgroundColor: #333; qproperty-backgroundColor: #333;
......
...@@ -3,21 +3,26 @@ QLabel { ...@@ -3,21 +3,26 @@ QLabel {
} }
#chatPage, #chatPage,
#chatPage > * { #chatPage > * {
background-color: white; background-color: white;
} }
TimelineView, TimelineView,
TimelineView > * { TimelineView > * {
background-color: white; background-color: white;
}
RoomList,
RoomList > * {
background-color: white;
} }
FlatButton { FlatButton {
qproperty-foregroundColor: #333; qproperty-foregroundColor: #333;
} }
RaisedButton { RaisedButton {
qproperty-foregroundColor: white; qproperty-foregroundColor: white;
} }
RoomInfoListItem { RoomInfoListItem {
......
...@@ -281,3 +281,12 @@ RoomList::closeLeaveRoomDialog(bool leaving, const QString &room_id) ...@@ -281,3 +281,12 @@ RoomList::closeLeaveRoomDialog(bool leaving, const QString &room_id)
client_->leaveRoom(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);
}
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