Fix some colors on value widget (#7875)
This commit is contained in:
@@ -97,7 +97,7 @@ void ValueWidget::refresh()
|
|||||||
if (field >= MIXSRC_FIRST_TIMER && field <= MIXSRC_LAST_TIMER) {
|
if (field >= MIXSRC_FIRST_TIMER && field <= MIXSRC_LAST_TIMER) {
|
||||||
TimerState & timerState = timersStates[field-MIXSRC_FIRST_TIMER];
|
TimerState & timerState = timersStates[field-MIXSRC_FIRST_TIMER];
|
||||||
if (timerState.val < 0) {
|
if (timerState.val < 0) {
|
||||||
lcdSetColor(ALARM_COLOR_INDEX);
|
lcdSetColor(lcdColorTable[ALARM_COLOR_INDEX]);
|
||||||
}
|
}
|
||||||
drawSource(x+NUMBERS_PADDING, y+2, field, CUSTOM_COLOR);
|
drawSource(x+NUMBERS_PADDING, y+2, field, CUSTOM_COLOR);
|
||||||
drawSource(x+NUMBERS_PADDING + 1, y + 3, field, BLACK);
|
drawSource(x+NUMBERS_PADDING + 1, y + 3, field, BLACK);
|
||||||
@@ -108,7 +108,7 @@ void ValueWidget::refresh()
|
|||||||
if (field >= MIXSRC_FIRST_TELEM) {
|
if (field >= MIXSRC_FIRST_TELEM) {
|
||||||
TelemetryItem & telemetryItem = telemetryItems[(field-MIXSRC_FIRST_TELEM)/3]; // TODO macro to convert a source to a telemetry index
|
TelemetryItem & telemetryItem = telemetryItems[(field-MIXSRC_FIRST_TELEM)/3]; // TODO macro to convert a source to a telemetry index
|
||||||
if (!telemetryItem.isAvailable() || telemetryItem.isOld()) {
|
if (!telemetryItem.isAvailable() || telemetryItem.isOld()) {
|
||||||
lcdSetColor(ALARM_COLOR_INDEX);
|
lcdSetColor(lcdColorTable[TEXT_DISABLE_COLOR_INDEX]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user