Core: Fix the FancyActionBar color for Classic theme

Task-number: QTCREATORBUG-16562
Change-Id: I1738f25ee93831ecbc4958e25099c97c707d7bca
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Alessandro Portale
2016-07-06 18:15:44 +02:00
parent ab070f8f7e
commit d40c4f2797

View File

@@ -230,10 +230,15 @@ void FancyToolButton::paintEvent(QPaintEvent *event)
} else {
splitBuildConfiguration = splitInTwoLines(buildConfiguration, boldFm, availableWidth);
}
// draw the two lines for the build configuration
// draw the two text lines for the build configuration
painter.setPen(creatorTheme()->color(isEnabled()
? Theme::FancyTabWidgetEnabledSelectedTextColor
: Theme::FancyTabWidgetDisabledSelectedTextColor));
// Intentionally using the "Unselected" colors,
// because the text color won't change in the pressed
// state as they would do on the mode buttons.
? Theme::FancyTabWidgetEnabledUnselectedTextColor
: Theme::FancyTabWidgetDisabledUnselectedTextColor));
for (int i = 0; i < 2; ++i) {
if (splitBuildConfiguration[i].isEmpty())
continue;