diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-12 00:52:56 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-12 00:52:56 +0300 |
commit | 532b1ab38f9e8002dd37e190c1ae32e7169099fb (patch) | |
tree | a741e586cf250a4d242f5e6decf68eabd3b9056a /src | |
parent | Use a single nick to color map (diff) | |
download | nheko-532b1ab38f9e8002dd37e190c1ae32e7169099fb.tar.xz |
Add style for m.notice
Tone down the main text color
Diffstat (limited to 'src')
-rw-r--r-- | src/HistoryViewItem.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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 = "<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>" |