UI: Use more compact representation for menu entries

replace/7ec1092c190e55335a4249c43cb7aae34916eae3
Federico Amedeo Izzo 2021-02-13 16:14:44 +01:00
rodzic a163bc6998
commit 0a04650d58
1 zmienionych plików z 11 dodań i 19 usunięć

Wyświetl plik

@ -99,7 +99,7 @@ extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state);
extern void _ui_drawSettingsDisplay(ui_state_t* ui_state); extern void _ui_drawSettingsDisplay(ui_state_t* ui_state);
extern bool _ui_drawMacroMenu(); extern bool _ui_drawMacroMenu();
const char *menu_items[8] = const char *menu_items[] =
{ {
"Zone", "Zone",
"Channels", "Channels",
@ -111,31 +111,22 @@ const char *menu_items[8] =
"About" "About"
}; };
const char *settings_items[] =
{
#ifdef HAS_RTC #ifdef HAS_RTC
const char *settings_items[] =
{
"Time & Date", "Time & Date",
"Display"
};
#else
const char *settings_items[] =
{
"Display"
};
#endif #endif
"Display",
};
const char *display_items[] =
{
"Brightness",
#ifdef SCREEN_CONTRAST #ifdef SCREEN_CONTRAST
const char *display_items[] =
{
"Brightness",
"Contrast" "Contrast"
};
#else
const char *display_items[] =
{
"Brightness",
};
#endif #endif
};
const char *info_items[] = const char *info_items[] =
{ {
"Bat. Voltage", "Bat. Voltage",
@ -147,6 +138,7 @@ const char *info_items[] =
"UHF", "UHF",
"LCD Type" "LCD Type"
}; };
const char *authors[] = const char *authors[] =
{ {
"Niccolo' IU2KIN", "Niccolo' IU2KIN",