diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-03-21 12:48:06 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-03-21 14:23:23 +0000 |
commit | ddde4bdd273749fc244613c04d88856667e0920a (patch) | |
tree | b89bac672eb1334bfa74f2c25c756a0613791e32 /src/plugins/coreplugin/progressmanager | |
parent | 2baa1f8b7730611894a1b1e3daebfc0d88845852 (diff) | |
download | qt-creator-ddde4bdd273749fc244613c04d88856667e0920a.tar.gz |
Utils: Improved handling of StyleHelper::baseColor
This change makes sure that the "UI coloring" feature respects the
original brightness of the current theme. It prevents dark themes from
getting a too light recoloring and vice versa.
Extra benefit: this allows to remove much recently introduced code.
Change-Id: Ib2c96e7ed172a4cc97520aa4b5d180cc6353c661
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/progressmanager')
-rw-r--r-- | src/plugins/coreplugin/progressmanager/futureprogress.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/progressmanager/futureprogress.cpp b/src/plugins/coreplugin/progressmanager/futureprogress.cpp index e1a2a66220..dd1a9bf59f 100644 --- a/src/plugins/coreplugin/progressmanager/futureprogress.cpp +++ b/src/plugins/coreplugin/progressmanager/futureprogress.cpp @@ -296,9 +296,7 @@ void FutureProgress::paintEvent(QPaintEvent *) { QPainter p(this); if (creatorTheme()->widgetStyle() == Theme::StyleFlat) { - p.fillRect(rect(), StyleHelper::isBaseColorDefault() - ? creatorTheme()->color(Theme::FutureProgressBackgroundColor) - : StyleHelper::baseColor()); + p.fillRect(rect(), StyleHelper::baseColor()); } else { QLinearGradient grad = StyleHelper::statusBarGradient(rect()); p.fillRect(rect(), grad); |