From 532b1ab38f9e8002dd37e190c1ae32e7169099fb Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 12 Apr 2017 00:52:56 +0300 Subject: [PATCH] Add style for m.notice Tone down the main text color --- src/HistoryViewItem.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HistoryViewItem.cc b/src/HistoryViewItem.cc index f13462a2..8eb92372 100644 --- a/src/HistoryViewItem.cc +++ b/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 = "" + body + ""; + 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 " " " %2" " " - " " + " " " %3" " " ""