mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Backlight color in SFs for REVPLUS
100 steps instead of 255, should be enough...
This commit is contained in:
parent
7600924d94
commit
dfead504f7
3 changed files with 11 additions and 3 deletions
|
@ -307,7 +307,7 @@ These will be relevant for all models in the same EEPROM.</string>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSlider" name="backlightColor_SL">
|
<widget class="QSlider" name="backlightColor_SL">
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>255</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|
|
@ -519,8 +519,8 @@ void menuGeneralSetup(uint8_t event)
|
||||||
#if defined(PCBTARANIS) && defined(REVPLUS)
|
#if defined(PCBTARANIS) && defined(REVPLUS)
|
||||||
case ITEM_SETUP_BACKLIGHT_COLOR:
|
case ITEM_SETUP_BACKLIGHT_COLOR:
|
||||||
lcd_putsLeft(y, STR_BLCOLOR);
|
lcd_putsLeft(y, STR_BLCOLOR);
|
||||||
displaySlider(RADIO_SETUP_2ND_COLUMN, y, g_eeGeneral.backlightColor, 255, attr);
|
displaySlider(RADIO_SETUP_2ND_COLUMN, y, g_eeGeneral.backlightColor, 100, attr);
|
||||||
if (attr) g_eeGeneral.backlightColor = checkIncDec(event, g_eeGeneral.backlightColor, 0, 255, EE_GENERAL | NO_INCDEC_MARKS);
|
if (attr) g_eeGeneral.backlightColor = checkIncDec(event, g_eeGeneral.backlightColor, 0, 100, EE_GENERAL | NO_INCDEC_MARKS);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -5074,6 +5074,14 @@ void menuModelCustomFunctions(uint8_t event)
|
||||||
lcd_putsiAtt(MODEL_CUSTOM_FUNC_3RD_COLUMN, y, STR_MMMINV, 0, attr);
|
lcd_putsiAtt(MODEL_CUSTOM_FUNC_3RD_COLUMN, y, STR_MMMINV, 0, attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(PCBTARANIS) && defined(REVPLUS)
|
||||||
|
else if (func == FUNC_BACKLIGHT) {
|
||||||
|
displaySlider(MODEL_CUSTOM_FUNC_3RD_COLUMN, y, CFN_PARAM(sd), 100, attr);
|
||||||
|
INCDEC_SET_FLAG(NO_INCDEC_MARKS);
|
||||||
|
val_min = 0;
|
||||||
|
val_max = 100;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (func == FUNC_RESET) {
|
else if (func == FUNC_RESET) {
|
||||||
val_max = FUNC_RESET_PARAM_LAST;
|
val_max = FUNC_RESET_PARAM_LAST;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue