summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/manhattanstyle.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-06-30 22:42:14 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-07-08 07:27:09 +0000
commit4caa37e7c35d4128e36e94b7a67ca0d267d2b008 (patch)
treef4562cb445bd02ef43c9016301d219a636065bfa /src/plugins/coreplugin/manhattanstyle.cpp
parent11d79e4f23305718a521f359e416297f007884ef (diff)
downloadqt-creator-4caa37e7c35d4128e36e94b7a67ca0d267d2b008.tar.gz
Theming: Use a light shade for pressed toolbuttons in dark theme
With the dark theme, it is very hard to distinguish between normal and pressed toolbuttons. Change-Id: Ic5baaa3f5a8651e19ebdfd8dad08904dc0ef0820 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/manhattanstyle.cpp')
-rw-r--r--src/plugins/coreplugin/manhattanstyle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp
index 5d66ec78fd..ab76a278f7 100644
--- a/src/plugins/coreplugin/manhattanstyle.cpp
+++ b/src/plugins/coreplugin/manhattanstyle.cpp
@@ -490,7 +490,8 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
QColor shadow(0, 0, 0, 30);
painter->setPen(shadow);
if (pressed) {
- QColor shade(0, 0, 0, 40);
+ QColor shade = option->palette.base().color();
+ shade.setHsv(shade.hue(), shade.saturation(), 255 - shade.value(), 40);
painter->fillRect(rect, shade);
painter->drawLine(rect.topLeft() + QPoint(1, 0), rect.topRight() - QPoint(1, 0));
painter->drawLine(rect.topLeft(), rect.bottomLeft());