mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-10 05:59:08 -07:00
Show custom hex color in rgb backlight menu
This commit is contained in:
@@ -181,8 +181,13 @@ void xtreme_app_scene_misc_screen_on_enter(void* context) {
|
||||
break;
|
||||
}
|
||||
variable_item_set_current_value_index(item, found ? value_index : lcd_sz);
|
||||
variable_item_set_current_value_text(
|
||||
item, found ? lcd_colors[value_index].name : "Custom");
|
||||
if(found) {
|
||||
variable_item_set_current_value_text(item, lcd_colors[value_index].name);
|
||||
} else {
|
||||
char str[7];
|
||||
snprintf(str, sizeof(str), "%02X%02X%02X", color.r, color.g, color.b);
|
||||
variable_item_set_current_value_text(item, str);
|
||||
}
|
||||
variable_item_set_locked(item, !xtreme_settings->rgb_backlight, "Needs RGB\nBacklight!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user