summary refs log tree commit diff
path: root/src/timeline/TimelineItem.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-19 20:26:14 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-19 20:26:14 +0200
commitd2d65b6662b57edc99d31b6edf47a5f2942d01a8 (patch)
treef7dc687926b1e599f072526d54536ec8e328e126 /src/timeline/TimelineItem.cc
parentUse the full with of the roomlist for the last message (diff)
downloadnheko-d2d65b6662b57edc99d31b6edf47a5f2942d01a8.tar.xz
More stylistic changes & dark theme tweaks
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineItem.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/timeline/TimelineItem.cc b/src/timeline/TimelineItem.cc
index 371ced10..326b2c14 100644
--- a/src/timeline/TimelineItem.cc
+++ b/src/timeline/TimelineItem.cc
@@ -31,6 +31,10 @@
 
 constexpr const static char *CHECKMARK = "✓";
 
+constexpr int MSG_RIGHT_MARGIN  = 7;
+constexpr int MSG_BOTTOM_MARGIN = 4;
+constexpr int MSG_PADDING       = 20;
+
 void
 TimelineItem::init()
 {
@@ -68,8 +72,8 @@ TimelineItem::init()
         topLayout_     = new QHBoxLayout(this);
         mainLayout_    = new QVBoxLayout;
         messageLayout_ = new QHBoxLayout;
-        messageLayout_->setContentsMargins(0, 0, 20, 4);
-        messageLayout_->setSpacing(20);
+        messageLayout_->setContentsMargins(0, 0, MSG_RIGHT_MARGIN, MSG_BOTTOM_MARGIN);
+        messageLayout_->setSpacing(MSG_PADDING);
 
         topLayout_->setContentsMargins(conf::timeline::msgMargin, conf::timeline::msgMargin, 0, 0);
         topLayout_->setSpacing(0);