Add style for m.notice

Tone down the main text color
pull/1/head
Konstantinos Sideris 8 years ago
parent c431eee401
commit 532b1ab38f
  1. 5
      src/HistoryViewItem.cc

@ -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>"

Loading…
Cancel
Save