summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/settings_menu.c43
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)
49} 49}
50 50
51#ifdef HAVE_LCD_BITMAP 51#ifdef HAVE_LCD_BITMAP
52
53/**
54 * Menu to configure the battery display on status bar
55 */
56static bool battery_type(void)
57{
58 char* names[] = { str(LANG_DISPLAY_GRAPHIC),
59 str(LANG_DISPLAY_NUMERIC) };
60
61 return set_option( str(LANG_BATTERY_DISPLAY),
62 &global_settings.battery_type, names, 2, NULL);
63}
64
65/**
66 * Menu to configure the volume display on status bar
67 */
68static bool volume_type(void)
69{
70 char* names[] = { str(LANG_DISPLAY_GRAPHIC),
71 str(LANG_DISPLAY_NUMERIC) };
72
73 return set_option( str(LANG_VOLUME_DISPLAY), &global_settings.volume_type,
74 names, 2, NULL);
75}
76
52/** 77/**
53 * Menu to set the hold time of normal peaks. 78 * Menu to set the hold time of normal peaks.
54 */ 79 */
@@ -157,24 +182,6 @@ static bool sort_case(void)
157 return set_bool( str(LANG_SORT_CASE), &global_settings.sort_case ); 182 return set_bool( str(LANG_SORT_CASE), &global_settings.sort_case );
158} 183}
159 184
160static bool battery_type(void)
161{
162 char* names[] = { str(LANG_DISPLAY_GRAPHIC),
163 str(LANG_DISPLAY_NUMERIC) };
164
165 return set_option( str(LANG_BATTERY_DISPLAY),
166 &global_settings.battery_type, names, 2, NULL);
167}
168
169static bool volume_type(void)
170{
171 char* names[] = { str(LANG_DISPLAY_GRAPHIC),
172 str(LANG_DISPLAY_NUMERIC) };
173
174 return set_option( str(LANG_VOLUME_DISPLAY), &global_settings.volume_type,
175 names, 2, NULL);
176}
177
178static bool resume(void) 185static bool resume(void)
179{ 186{
180 char* names[] = { str(LANG_SET_BOOL_NO), 187 char* names[] = { str(LANG_SET_BOOL_NO),