From: Sebastian Dörner Date: Thu, 3 Mar 2011 19:19:29 +0000 (+0100) Subject: Adjust text color to new emblem for unstaged files X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3c6ec1b7f9a03dc08a1ee9b95208a651fa9aa90b Adjust text color to new emblem for unstaged files The new emblem is green, not red, which should be reflected by the text color. Now, all files that will be part of the next commit (LocallyModifiedVersion and AddedVersion) are green and unstaged files darkGreen. --- diff --git a/src/views/dolphinfileitemdelegate.cpp b/src/views/dolphinfileitemdelegate.cpp index ce0411005..9fed95bca 100644 --- a/src/views/dolphinfileitemdelegate.cpp +++ b/src/views/dolphinfileitemdelegate.cpp @@ -130,9 +130,9 @@ void DolphinFileItemDelegate::adjustOptionTextColor(QStyleOptionViewItemV4& opti // have been optimized for the base colors of the corresponding Oxygen emblems. switch (state) { case KVersionControlPlugin::UpdateRequiredVersion: tintColor = Qt::yellow; break; - case KVersionControlPlugin::LocallyModifiedUnstagedVersion: tintColor = Qt::darkRed; break; + case KVersionControlPlugin::LocallyModifiedUnstagedVersion: tintColor = Qt::darkGreen; break; case KVersionControlPlugin::LocallyModifiedVersion: tintColor = Qt::green; break; - case KVersionControlPlugin::AddedVersion: tintColor = Qt::darkGreen; break; + case KVersionControlPlugin::AddedVersion: tintColor = Qt::green; break; case KVersionControlPlugin::RemovedVersion: tintColor = Qt::darkRed; break; case KVersionControlPlugin::ConflictingVersion: tintColor = Qt::red; break; case KVersionControlPlugin::UnversionedVersion: