summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2018-04-28 13:17:24 (GMT)
committerKevin Smith <git@kismith.co.uk>2018-04-28 13:17:24 (GMT)
commita6101ef26599862a4610f7d0fd650145daba5bb4 (patch)
tree0e75673fd0cb28a5bef9ba37e4f2192315fc8a84 /Swift
parent4ea9c16b31b4936eaba4e7c2905672702d9d45bc (diff)
downloadswift-a6101ef26599862a4610f7d0fd650145daba5bb4.zip
swift-a6101ef26599862a4610f7d0fd650145daba5bb4.tar.bz2
Show away contacts as yellow
Test-Information: Tried assorted yellows, this one doesn't look too terrible. Change-Id: I32c52dc262c1c49c741286d3402e8357559c411a
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatOverviewDelegate.cpp16
1 files changed, 8 insertions, 8 deletions
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<StatusShow::Type>(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);