diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-02-26 12:30:14 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-02-26 11:54:13 +0000 |
commit | d36716ae1499ce2e23ad71015bce7653b4aa17e2 (patch) | |
tree | cf5df08ba6996dec5f969002b9df73ed96a66ef8 /src/plugins/coreplugin/fancytabwidget.cpp | |
parent | c9f595bfc7aa27f30e66356fced1cf8eb2486ac4 (diff) | |
download | qt-creator-d36716ae1499ce2e23ad71015bce7653b4aa17e2.tar.gz |
Themes: Fix UI recoloring for flat themes
Reduce the usage of half-transparent colors to just the Fancy* widgets.
Otherwise, we have side effects like QTCREATORBUG-15770 in other
widgets (e.g. search results pane).
Change-Id: I0e2b0155441c4f1a071bd3c1029577accb73d56b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/fancytabwidget.cpp')
-rw-r--r-- | src/plugins/coreplugin/fancytabwidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/fancytabwidget.cpp b/src/plugins/coreplugin/fancytabwidget.cpp index 7efcaf64d2..c74212312b 100644 --- a/src/plugins/coreplugin/fancytabwidget.cpp +++ b/src/plugins/coreplugin/fancytabwidget.cpp @@ -300,8 +300,7 @@ void FancyTabBar::paintTab(QPainter *painter, int tabIndex) const if (selected) { if (creatorTheme()->widgetStyle() == Theme::StyleFlat) { // background color of a fancy tab that is active - painter->fillRect(rect.adjusted(0, 0, 0, -1), - creatorTheme()->color(Theme::BackgroundColorSelected)); + painter->fillRect(rect, creatorTheme()->color(Theme::FancyToolButtonSelectedColor)); } else { paintSelectedTabBackground(painter, rect); } @@ -324,7 +323,7 @@ void FancyTabBar::paintTab(QPainter *painter, int tabIndex) const painter->save(); painter->setOpacity(fader); if (creatorTheme()->widgetStyle() == Theme::StyleFlat) - painter->fillRect(rect, creatorTheme()->color(Theme::BackgroundColorHover)); + painter->fillRect(rect, creatorTheme()->color(Theme::FancyToolButtonHoverColor)); else FancyToolButton::hoverOverlay(painter, rect); painter->restore(); |