summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/lang/english.lang17
-rw-r--r--apps/menus/settings_menu.c7
-rw-r--r--apps/settings.c3
-rw-r--r--apps/settings.h3
-rw-r--r--apps/settings_list.c5
5 files changed, 35 insertions, 0 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index fb19485d43..e8dcf4867d 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -10776,6 +10776,23 @@
10776 </voice> 10776 </voice>
10777</phrase> 10777</phrase>
10778<phrase> 10778<phrase>
10779 id: LANG_BUTTONLIGHT_BRIGHTNESS
10780 desc: in settings_menu
10781 user:
10782 <source>
10783 *: ""
10784 gigabeatf: "Button Light Brightness"
10785 </source>
10786 <dest>
10787 *: ""
10788 gigabeatf: "Button Light Brightness"
10789 </dest>
10790 <voice>
10791 *: ""
10792 gigabeatf: "Button Light Brightness"
10793 </voice>
10794</phrase>
10795<phrase>
10779 id: LANG_PLAYLISTVIEWER_SETTINGS 10796 id: LANG_PLAYLISTVIEWER_SETTINGS
10780 desc: title for the playlist viewer settings menus 10797 desc: title for the playlist viewer settings menus
10781 user: 10798 user:
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 528587dffb..6d962824f1 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -323,6 +323,10 @@ MENUITEM_SETTING(start_screen, &global_settings.start_in_screen, NULL);
323MENUITEM_SETTING(button_light_timeout, &global_settings.button_light_timeout, NULL); 323MENUITEM_SETTING(button_light_timeout, &global_settings.button_light_timeout, NULL);
324#endif 324#endif
325 325
326#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
327MENUITEM_SETTING(buttonlight_brightness, &global_settings.buttonlight_brightness, NULL);
328#endif
329
326MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), 330MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
327 0, Icon_System_menu, 331 0, Icon_System_menu,
328 &start_screen, 332 &start_screen,
@@ -352,6 +356,9 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
352#ifdef HAVE_BUTTON_LIGHT 356#ifdef HAVE_BUTTON_LIGHT
353 &button_light_timeout, 357 &button_light_timeout,
354#endif 358#endif
359#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
360 &buttonlight_brightness
361#endif
355 ); 362 );
356 363
357/* SYSTEM MENU */ 364/* SYSTEM MENU */
diff --git a/apps/settings.c b/apps/settings.c
index 35a063bf96..81dbe71491 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -713,6 +713,9 @@ void settings_apply(void)
713#ifdef HAVE_BUTTON_LIGHT 713#ifdef HAVE_BUTTON_LIGHT
714 button_backlight_set_timeout(global_settings.button_light_timeout); 714 button_backlight_set_timeout(global_settings.button_light_timeout);
715#endif 715#endif
716#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
717 buttonlight_set_brightness(global_settings.buttonlight_brightness);
718#endif
716#ifdef HAVE_BACKLIGHT_BRIGHTNESS 719#ifdef HAVE_BACKLIGHT_BRIGHTNESS
717 backlight_set_brightness(global_settings.brightness); 720 backlight_set_brightness(global_settings.brightness);
718#endif 721#endif
diff --git a/apps/settings.h b/apps/settings.h
index 13291be3df..5e9da84bae 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -720,6 +720,9 @@ struct user_settings
720#ifdef HAVE_BUTTON_LIGHT 720#ifdef HAVE_BUTTON_LIGHT
721 int button_light_timeout; 721 int button_light_timeout;
722#endif 722#endif
723#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
724 int buttonlight_brightness;
725#endif
723}; 726};
724 727
725/** global variables **/ 728/** global variables **/
diff --git a/apps/settings_list.c b/apps/settings_list.c
index e781c51be0..d39779607d 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1183,6 +1183,11 @@ const struct settings_list settings[] = {
1183 0, 18, 1, backlight_formatter, backlight_getlang, 1183 0, 18, 1, backlight_formatter, backlight_getlang,
1184 button_backlight_set_timeout), 1184 button_backlight_set_timeout),
1185#endif 1185#endif
1186#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
1187 INT_SETTING(0, buttonlight_brightness, LANG_BUTTONLIGHT_BRIGHTNESS, DEFAULT_BRIGHTNESS_SETTING,
1188 "button light brightness",UNIT_INT, MIN_BRIGHTNESS_SETTING, MAX_BRIGHTNESS_SETTING, 1,
1189 NULL, NULL, buttonlight_set_brightness),
1190#endif
1186}; 1191};
1187 1192
1188const int nb_settings = sizeof(settings)/sizeof(*settings); 1193const int nb_settings = sizeof(settings)/sizeof(*settings);