diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-25 13:00:58 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-25 13:00:58 +0900 |
commit | cd1884b29cff57b225e1ab58d0b1dcad25669034 (patch) | |
tree | ccfa80390955be7e6f68a740ef8344a029f7ad61 /qt-ui/profile | |
parent | 1ff309c9a1f1d6a4bcbb7afb2561a412ae64903d (diff) | |
download | subsurface-cd1884b29cff57b225e1ab58d0b1dcad25669034.tar.gz |
Use neutral color for "no SAC information"
In commit 31d1d1f4217c ("Don't change pen color when for zero SAC") Robert
continues to use the last SAC color (which certainly was better than
switching to dark green for "extremely low SAC rate"). But I think it
makes even more sense to mark it as neutral - so I picked a gray.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index cff2b1f43..2c814678a 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -782,6 +782,8 @@ void DiveGasPressureItem::paint(QPainter *painter, const QStyleOptionGraphicsIte for (int i = 1, count = poly.count(); i < count; i++, entry++) { if (entry->sac) pen.setBrush(getSacColor(entry->sac, displayed_dive.sac)); + else + pen.setBrush(MED_GRAY_HIGH_TRANS); painter->setPen(pen); painter->drawLine(poly[i - 1], poly[i]); } |