mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +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:
parent
e5ca71052a
commit
16acc9a736
@ -112,13 +112,13 @@ void GpsSnrWidget::drawSat(int index)
|
||||
// GLONASS 65-96, 255 if unidentified
|
||||
// Galileo 211-246
|
||||
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) {
|
||||
boxes[index]->setBrush(QColor("Cyan"));
|
||||
} else if ((prn > 32 && prn < 65) || (prn > 158 && prn < 164)) {
|
||||
boxes[index]->setBrush(QColor("Red"));
|
||||
} else if (prn > 210 && prn < 247) {
|
||||
boxes[index]->setBrush(QColor("#e162f3"));
|
||||
boxes[index]->setBrush(QColor("#e162f3")); // magenta
|
||||
} else {
|
||||
boxes[index]->setBrush(QColor("Green"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user