forked from qt-creator/qt-creator
Fix display of keyboard shortcuts
Was using wrong foreground color for the "no collision" case.
Fix-up of 963dc84cc5
Fixes: QTCREATORBUG-22333
Change-Id: I5b4934b69bd9ff2002846ffda700673b6e1cab24
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
@@ -552,7 +552,7 @@ bool ShortcutSettingsWidget::markCollisions(ShortcutItem *item)
|
|||||||
}
|
}
|
||||||
item->m_item->setForeground(2, hasCollision
|
item->m_item->setForeground(2, hasCollision
|
||||||
? Utils::creatorTheme()->color(Utils::Theme::TextColorError)
|
? Utils::creatorTheme()->color(Utils::Theme::TextColorError)
|
||||||
: commandList()->palette().window());
|
: commandList()->palette().windowText());
|
||||||
return hasCollision;
|
return hasCollision;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user