summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-09 18:45:18 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-09 18:45:18 +0300
commit040e29dfb97a2f7f6befa65c1a5dbc00cc4b2c65 (patch)
tree75cc318cbe7f76129d597a46a7514b6f2ec34ae2
parentRemove the reserved space gap for the typing notifications (diff)
downloadnheko-040e29dfb97a2f7f6befa65c1a5dbc00cc4b2c65.tar.xz
Add bottom border line on Linux
-rw-r--r--src/TopRoomBar.h4
-rw-r--r--src/UserInfoWidget.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/TopRoomBar.h b/src/TopRoomBar.h
index 994486e0..ad74458c 100644
--- a/src/TopRoomBar.h
+++ b/src/TopRoomBar.h
@@ -78,8 +78,10 @@ protected:
                 QPainter p(this);
                 style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
 
+#if !defined(Q_OS_MAC)
                 p.setPen(QPen(borderColor()));
-                p.drawLine(QPointF(0, height()), QPointF(width(), height()));
+                p.drawLine(QPointF(0, height() - p.pen().width()), QPointF(width(), height()));
+#endif
         }
 
 private:
diff --git a/src/UserInfoWidget.cpp b/src/UserInfoWidget.cpp
index b2860028..c0409823 100644
--- a/src/UserInfoWidget.cpp
+++ b/src/UserInfoWidget.cpp
@@ -161,6 +161,8 @@ UserInfoWidget::paintEvent(QPaintEvent *event)
         QPainter p(this);
         style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
 
+#if !defined(Q_OS_MAC)
         p.setPen(QPen(borderColor()));
-        p.drawLine(QPointF(0, height()), QPointF(width(), height()));
+        p.drawLine(QPointF(0, height() - p.pen().width()), QPointF(width(), height()));
+#endif
 }