mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Add bottom border line on Linux
This commit is contained in:
parent
d4c3dac28f
commit
040e29dfb9
2 changed files with 6 additions and 2 deletions
|
@ -78,8 +78,10 @@ protected:
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
||||||
|
|
||||||
|
#if !defined(Q_OS_MAC)
|
||||||
p.setPen(QPen(borderColor()));
|
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:
|
private:
|
||||||
|
|
|
@ -161,6 +161,8 @@ UserInfoWidget::paintEvent(QPaintEvent *event)
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
||||||
|
|
||||||
|
#if !defined(Q_OS_MAC)
|
||||||
p.setPen(QPen(borderColor()));
|
p.setPen(QPen(borderColor()));
|
||||||
p.drawLine(QPointF(0, height()), QPointF(width(), height()));
|
p.drawLine(QPointF(0, height() - p.pen().width()), QPointF(width(), height()));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue