forked from qt-creator/qt-creator
Utils: Introduce a convenience function creatorColor()
... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -3154,7 +3154,7 @@ void GitClient::push(const FilePath &workingDirectory, const QStringList &pushAr
|
||||
return;
|
||||
|
||||
if (pushFailure == PushFailure::NonFastForward) {
|
||||
const QColor warnColor = Utils::creatorTheme()->color(Theme::TextColorError);
|
||||
const QColor warnColor = Utils::creatorColor(Theme::TextColorError);
|
||||
if (QMessageBox::question(
|
||||
Core::ICore::dialogParent(), Tr::tr("Force Push"),
|
||||
Tr::tr("Push failed. Would you like to force-push <span style=\"color:#%1\">"
|
||||
|
||||
Reference in New Issue
Block a user