From 36975a42a7beb5e24a16629cfe0b14d131401993 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Sun, 13 Sep 2015 16:37:23 +0200 Subject: [PATCH] enhance font colors --- src/segmentedcontrol.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.5