diff options
-rw-r--r-- | apps/settings_menu.c | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 90c7154412..6f527f5224 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -49,6 +49,31 @@ static bool contrast(void) } #ifdef HAVE_LCD_BITMAP + +/** + * Menu to configure the battery display on status bar + */ +static bool battery_type(void) +{ + char* names[] = { str(LANG_DISPLAY_GRAPHIC), + str(LANG_DISPLAY_NUMERIC) }; + + return set_option( str(LANG_BATTERY_DISPLAY), + &global_settings.battery_type, names, 2, NULL); +} + +/** + * Menu to configure the volume display on status bar + */ +static bool volume_type(void) +{ + char* names[] = { str(LANG_DISPLAY_GRAPHIC), + str(LANG_DISPLAY_NUMERIC) }; + + return set_option( str(LANG_VOLUME_DISPLAY), &global_settings.volume_type, + names, 2, NULL); +} + /** * Menu to set the hold time of normal peaks. */ @@ -157,24 +182,6 @@ static bool sort_case(void) return set_bool( str(LANG_SORT_CASE), &global_settings.sort_case ); } -static bool battery_type(void) -{ - char* names[] = { str(LANG_DISPLAY_GRAPHIC), - str(LANG_DISPLAY_NUMERIC) }; - - return set_option( str(LANG_BATTERY_DISPLAY), - &global_settings.battery_type, names, 2, NULL); -} - -static bool volume_type(void) -{ - char* names[] = { str(LANG_DISPLAY_GRAPHIC), - str(LANG_DISPLAY_NUMERIC) }; - - return set_option( str(LANG_VOLUME_DISPLAY), &global_settings.volume_type, - names, 2, NULL); -} - static bool resume(void) { char* names[] = { str(LANG_SET_BOOL_NO), |