From: Flavio Tordini Date: Sun, 13 Sep 2015 14:37:23 +0000 (+0200) Subject: enhance font colors X-Git-Tag: 2.5~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=36975a42a7beb5e24a16629cfe0b14d131401993;p=minitube enhance font colors --- diff --git a/src/segmentedcontrol.cpp b/src/segmentedcontrol.cpp index 88172ab..a355152 100644 --- a/src/segmentedcontrol.cpp +++ b/src/segmentedcontrol.cpp @@ -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); }