diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-06-17 18:52:24 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2016-06-20 07:49:56 +0000 |
commit | abb63602de086547d7096b90f60393adafef43c0 (patch) | |
tree | ecaa83e0e9a770da60c1d4a20d6d60319a229720 /src/libs/utils/icon.cpp | |
parent | 5ff15e89f29f7cd2f687d980e45fac84ced11097 (diff) |
Utils: Make the "shadow" under toolbar icons optional
In preparation od a "Flat Light" theme, where shadows under the icons
would have a negative impact.
Change-Id: I2d9d3563c90336640513c1a970a432898dd63cfc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/icon.cpp')
-rw-r--r-- | src/libs/utils/icon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/icon.cpp b/src/libs/utils/icon.cpp index 138a3ddbd9d..fbfb1e25f16 100644 --- a/src/libs/utils/icon.cpp +++ b/src/libs/utils/icon.cpp @@ -129,7 +129,7 @@ static QPixmap masksToIcon(const MasksAndColors &masks, const QPixmap &combinedM p.drawPixmap(0, 0, maskToColorAndAlpha((*maskImage).first, (*maskImage).second)); } - if (style & Icon::DropShadow) { + if (style & Icon::DropShadow && creatorTheme()->flag(Theme::ToolBarIconShadow)) { const QPixmap shadowMask = maskToColorAndAlpha(combinedMask, Qt::black); p.setCompositionMode(QPainter::CompositionMode_DestinationOver); p.setOpacity(0.05); |