]> git.sur5r.net Git - minitube/commitdiff
enhance font colors
authorFlavio Tordini <flavio.tordini@gmail.com>
Sun, 13 Sep 2015 14:37:23 +0000 (16:37 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Sun, 13 Sep 2015 14:37:23 +0000 (16:37 +0200)
src/segmentedcontrol.cpp

index 88172ab990d0bbe479eadcf9dc830602a6157ac0..a355152ef6a89c037ae85d70a4fe2ca52c7d3fb6 100644 (file)
@@ -195,6 +195,7 @@ void SegmentedControl::drawButton (QPainter *painter,
 void SegmentedControl::drawUnselectedButton (QPainter *painter,
                                         const QRect& rect,
                                         const QAction *action) {
+    painter->setPen(QColor(0, 0, 0, 128));
     paintButton(painter, rect, action);
 }
 
@@ -215,6 +216,7 @@ void SegmentedControl::drawSelectedButton (QPainter *painter,
     painter->fillRect(0, 0, width, height, QBrush(gradient));
 
     painter->restore();
+    painter->setPen(palette().windowText().color());
     paintButton(painter, rect, action);
 }