1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-12 02:54:15 +01:00

LP-452 Enhancement from review by Philippe Renon: describe colors in the code. Custom values are used instead of the QColor pre-defined colors to increase contrast against the text.

This commit is contained in:
Jan NIJS 2016-12-17 20:58:25 +01:00
parent e5ca71052a
commit 16acc9a736

View File

@ -112,13 +112,13 @@ void GpsSnrWidget::drawSat(int index)
// GLONASS 65-96, 255 if unidentified // GLONASS 65-96, 255 if unidentified
// Galileo 211-246 // Galileo 211-246
if ((prn > 119 && prn < 159) || (prn > 192 && prn < 198)) { if ((prn > 119 && prn < 159) || (prn > 192 && prn < 198)) {
boxes[index]->setBrush(QColor("#fd700b")); boxes[index]->setBrush(QColor("#fd700b")); // orange
} else if ((prn > 64 && prn < 97) || 255 == prn) { } else if ((prn > 64 && prn < 97) || 255 == prn) {
boxes[index]->setBrush(QColor("Cyan")); boxes[index]->setBrush(QColor("Cyan"));
} else if ((prn > 32 && prn < 65) || (prn > 158 && prn < 164)) { } else if ((prn > 32 && prn < 65) || (prn > 158 && prn < 164)) {
boxes[index]->setBrush(QColor("Red")); boxes[index]->setBrush(QColor("Red"));
} else if (prn > 210 && prn < 247) { } else if (prn > 210 && prn < 247) {
boxes[index]->setBrush(QColor("#e162f3")); boxes[index]->setBrush(QColor("#e162f3")); // magenta
} else { } else {
boxes[index]->setBrush(QColor("Green")); boxes[index]->setBrush(QColor("Green"));
} }