summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2009-10-08 19:20:22 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2009-10-08 19:20:48 (GMT)
commita35c52abe95f224af062550e4954f7cbefca1bd8 (patch)
tree3c2b065e0ba6377ddc35a2b8bc7559d08845a9e6 /src/gui/styles
parenta2dcb039c336a4277949849cd1430812351da7ae (diff)
downloadQt-a35c52abe95f224af062550e4954f7cbefca1bd8.zip
Qt-a35c52abe95f224af062550e4954f7cbefca1bd8.tar.gz
Qt-a35c52abe95f224af062550e4954f7cbefca1bd8.tar.bz2
Color role with higher contrast for focusrect
Low-risk, high value change. Beta worthy! As much as QPalette::Highlight sounds like a suitable color role for drawing a focus rect... It simply did not work well with a lot of S60 themes (e.g. the default N95 theme). QPalette::Text is a better candidate, since the S60 themes promise a good contrast of text on background graphics. Reviewed-By: Sami Merilä
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qs60style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 59787da..4fa1d03 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -1864,7 +1864,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option,
painter->save();
painter->setRenderHint(QPainter::Antialiasing);
painter->setOpacity(opacity);
- painter->setPen(QPen(option->palette.color(QPalette::Highlight), penWidth));
+ painter->setPen(QPen(option->palette.color(QPalette::Text), penWidth));
painter->drawRoundedRect(adjustedRect, roundRectRadius, roundRectRadius);
painter->restore();
}