mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 08:59:55 +00:00
Overlay title bar nit
.. frame needed over title esp when in white.
This commit is contained in:
@@ -215,7 +215,7 @@ GcOverlayWidget::paintBackground(QPaintEvent *)
|
||||
QLinearGradient inactive = GCColor::linearGradient(23, false);
|
||||
|
||||
// title
|
||||
QRect title(0,0,width(),23);
|
||||
QRect title(1,1,width()-2,22);
|
||||
painter.fillRect(title, QColor(Qt::white));
|
||||
painter.fillRect(title, isActiveWindow() ? active : inactive);
|
||||
|
||||
@@ -224,9 +224,9 @@ GcOverlayWidget::paintBackground(QPaintEvent *)
|
||||
painter.setPen(black);
|
||||
painter.drawLine(0,22, width()-1, 22);
|
||||
|
||||
QPen gray(QColor(230,230,230));
|
||||
painter.setPen(gray);
|
||||
painter.drawLine(0,0, width()-1, 0);
|
||||
//QPen gray(QColor(230,230,230));
|
||||
//painter.setPen(gray);
|
||||
//painter.drawLine(0,0, width()-1, 0);
|
||||
}
|
||||
|
||||
painter.restore();
|
||||
|
||||
Reference in New Issue
Block a user