summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-18 15:54:53 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-18 15:54:53 +0200
commit7253dc2c54465c9bd5bd81c38b1bd8a4927864eb (patch)
treeb009d6736f528b63b087a90160808b39d02bd90a /src/timeline
parentUpgrade gcc version (diff)
downloadnheko-7253dc2c54465c9bd5bd81c38b1bd8a4927864eb.tar.xz
roomlist: Put the message timestamp on the top
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineView.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/timeline/TimelineView.cc b/src/timeline/TimelineView.cc

index 16b57df4..c4d31f3a 100644 --- a/src/timeline/TimelineView.cc +++ b/src/timeline/TimelineView.cc
@@ -679,13 +679,17 @@ TimelineView::createDateSeparator(QDateTime datetime) fmt = QString("ddd d MMMM"); if (days == 0) - separator = new QLabel(tr("Today")); + separator = new QLabel(tr("Today"), this); else if (std::abs(days) == 1) - separator = new QLabel(tr("Yesterday")); + separator = new QLabel(tr("Yesterday"), this); else - separator = new QLabel(datetime.toString(fmt)); + separator = new QLabel(datetime.toString(fmt), this); if (separator) { + QFont font; + font.setWeight(60); + + separator->setFont(font); separator->setStyleSheet( QString("font-size: %1px").arg(conf::timeline::fonts::dateSeparator)); separator->setAlignment(Qt::AlignCenter);