summary refs log tree commit diff
path: root/src/timeline/TimelineItem.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-19 22:42:26 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-19 22:42:26 +0300
commit1716502eff3e5108f05aba8acbabd5c9287d624c (patch)
treefe16cfce143a3350c1b1453edf47adbb5e13f665 /src/timeline/TimelineItem.cpp
parentci: Don't count errors during brew upgrade (diff)
downloadnheko-1716502eff3e5108f05aba8acbabd5c9287d624c.tar.xz
Improvements on the system theme
Diffstat (limited to 'src/timeline/TimelineItem.cpp')
-rw-r--r--src/timeline/TimelineItem.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timeline/TimelineItem.cpp b/src/timeline/TimelineItem.cpp

index 18598487..fcc2accf 100644 --- a/src/timeline/TimelineItem.cpp +++ b/src/timeline/TimelineItem.cpp
@@ -41,9 +41,15 @@ constexpr int MSG_RIGHT_MARGIN = 7; constexpr int MSG_PADDING = 20; +TextLabel::TextLabel(QWidget *parent) + : TextLabel(QString(), parent) +{} + TextLabel::TextLabel(const QString &text, QWidget *parent) : QTextBrowser(parent) { + document()->setDefaultStyleSheet(QString("a {color: %1; }").arg(utils::linkColor())); + setText(text); setOpenExternalLinks(true); @@ -722,6 +728,8 @@ void TimelineItem::generateTimestamp(const QDateTime &time) { QFont timestampFont; + timestampFont.setFamily("Monospace"); + timestampFont.setStyleHint(QFont::Monospace); timestampFont.setPixelSize(conf::timeline::fonts::timestamp); timestamp_ = new QLabel(this);