forked from qt-creator/qt-creator
Fix text color of progress/find status summary label
Using a themed text color instead of a hard-coded one and making sure that ManhattanStyle does not tweak it. Task-number: QTCREATORBUG-16643 Change-Id: I4bac9b29ee3c293270f39438664d617ac7591c8e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -93,10 +93,9 @@ QColor StyleHelper::notTooBrightHighlightColor()
|
||||
QPalette StyleHelper::sidebarFontPalette(const QPalette &original)
|
||||
{
|
||||
QPalette palette = original;
|
||||
palette.setColor(QPalette::Active, QPalette::Text, panelTextColor());
|
||||
palette.setColor(QPalette::Active, QPalette::WindowText, panelTextColor());
|
||||
palette.setColor(QPalette::Inactive, QPalette::Text, panelTextColor().darker());
|
||||
palette.setColor(QPalette::Inactive, QPalette::WindowText, panelTextColor().darker());
|
||||
const QColor textColor = creatorTheme()->color(Theme::ProgressBarTitleColor);
|
||||
palette.setColor(QPalette::WindowText, textColor);
|
||||
palette.setColor(QPalette::Text, textColor);
|
||||
return palette;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user