Add style for m.notice

Tone down the main text color
This commit is contained in:
Konstantinos Sideris 2017-04-12 00:52:56 +03:00
parent c431eee401
commit 532b1ab38f
1 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@ HistoryViewItem::HistoryViewItem(const Event &event, bool with_sender, const QSt
auto timestamp = QDateTime::fromMSecsSinceEpoch(event.timestamp());
auto local_time = timestamp.toString("HH:mm");
if (event.content().value("msgtype").toString() == "m.notice")
body = "<i style=\"color: #565E5E\">" + body + "</i>";
time_label_ = new QLabel(this);
time_label_->setWordWrap(true);
QString msg(
@ -58,7 +61,7 @@ HistoryViewItem::HistoryViewItem(const Event &event, bool with_sender, const QSt
" <span style=\"font-size: 10pt; font-weight: 600; color: %1\">"
" %2"
" </span>"
" <span style=\"font-size: 10pt;\">"
" <span style=\"font-size: 10pt; color: #B1AEA5;\">"
" %3"
" </span>"
"</body>"