From a6101ef26599862a4610f7d0fd650145daba5bb4 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sat, 28 Apr 2018 14:17:24 +0100 Subject: Show away contacts as yellow Test-Information: Tried assorted yellows, this one doesn't look too terrible. Change-Id: I32c52dc262c1c49c741286d3402e8357559c411a diff --git a/Swift/QtUI/QtChatOverviewDelegate.cpp b/Swift/QtUI/QtChatOverviewDelegate.cpp index 919c23d..00821fe 100644 --- a/Swift/QtUI/QtChatOverviewDelegate.cpp +++ b/Swift/QtUI/QtChatOverviewDelegate.cpp @@ -47,18 +47,18 @@ void QtChatOverviewDelegate::paint(QPainter* painter, const QStyleOptionViewItem DelegateCommons::drawElidedText(painter, nameRegion, index.data(Qt::DisplayRole).toString()); const auto green = QColor(124, 243, 145); - const auto yellow = QColor(124, 243, 145); // FIXME: Yellow isn't green - const auto red = QColor(255,45,71); + const auto yellow = QColor(243, 243, 0); + const auto red = QColor(255, 45, 71); const auto grey = QColor(159,159,159); auto circleColour = grey; auto status = static_cast(index.data(ChattablesModel::StatusRole).toInt()); switch (status) { - case StatusShow::Online: circleColour = green;break; - case StatusShow::FFC: circleColour = green;break; - case StatusShow::Away: circleColour = yellow;break; - case StatusShow::XA: circleColour = yellow;break; - case StatusShow::DND: circleColour = red;break; - case StatusShow::None: circleColour = grey;break; + case StatusShow::Online: circleColour = green; break; + case StatusShow::FFC: circleColour = green; break; + case StatusShow::Away: circleColour = yellow; break; + case StatusShow::XA: circleColour = yellow; break; + case StatusShow::DND: circleColour = red; break; + case StatusShow::None: circleColour = grey; break; } painter->setRenderHint(QPainter::Antialiasing, true); -- cgit v0.10.2-6-g49f6