summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/lang/english.lang6
-rw-r--r--apps/settings.c1
-rw-r--r--apps/settings.h3
-rw-r--r--apps/settings_menu.c7
-rw-r--r--apps/wps-display.c8
-rw-r--r--docs/CREDITS1
6 files changed, 24 insertions, 2 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 062c7a0d75..16c549703e 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -2793,3 +2793,9 @@ desc: in sound settings
eng: "Super bass"
voice: "Super bass"
new:
+
+id: LANG_PROGRESSBAR_SOLID
+desc: Appearance of the progress bar
+eng: "Solid progress bar"
+voice: "solid progress bar"
+new:
diff --git a/apps/settings.c b/apps/settings.c
index 8434d3e211..9f4405f960 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -193,6 +193,7 @@ static struct bit_entry rtc_bits[] =
{1, S_O(statusbar), true, "statusbar", off_on },
{1, S_O(scrollbar), true, "scrollbar", off_on },
{1, S_O(buttonbar), true, "buttonbar", off_on },
+ {1, S_O(progressbar_solid), false, "solid progressbar", off_on },
{1, S_O(volume_type), 0, "volume display", graphic_numeric },
{1, S_O(battery_type), 0, "battery display", graphic_numeric },
{1, S_O(timeformat), 0, "time format", "24hour,12hour" },
diff --git a/apps/settings.h b/apps/settings.h
index b7b0864b4c..51809836d8 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -168,6 +168,9 @@ struct user_settings
/* show scroll bar */
bool scrollbar; /* 0=hide, 1=show */
+ /* Scrollbar mode */
+ bool progressbar_solid; /* 0=slider, 1=solid */
+
/* goto current song when exiting WPS */
bool browse_current; /* 1=goto current song,
0=goto previous location */
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 057191e603..9aae28a425 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -959,6 +959,12 @@ static bool button_bar(void)
{
return set_bool( str(LANG_BUTTON_BAR), &global_settings.buttonbar );
}
+
+static bool progressbar_solid(void)
+{
+ return set_bool( str(LANG_PROGRESSBAR_SOLID),
+ &global_settings.progressbar_solid );
+}
#endif
static bool ff_rewind_settings_menu(void)
@@ -1192,6 +1198,7 @@ static bool display_settings_menu(void)
#ifdef HAVE_LCD_BITMAP
{ STR(LANG_BARS_MENU), bars_settings_menu },
{ STR(LANG_PM_MENU), peak_meter_menu },
+ { STR(LANG_PROGRESSBAR_SOLID), progressbar_solid },
#endif
};
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 17e5fa5aca..701d2e2d21 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -916,8 +916,12 @@ bool wps_refresh(struct mp3entry* id3,
int percent=
id3->length?
(id3->elapsed + ff_rewind_count) * 100 / id3->length:0;
- slidebar(0, i*h + offset + 1, LCD_WIDTH, 6,
- percent, Grow_Right);
+ if(global_settings.progressbar_solid)
+ scrollbar(0, i*h + offset + 1, LCD_WIDTH, 6, 100, 0,
+ percent, HORIZONTAL);
+ else
+ slidebar(0, i*h + offset + 1, LCD_WIDTH, 6,
+ percent, Grow_Right);
update_line = true;
}
if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {
diff --git a/docs/CREDITS b/docs/CREDITS
index 0bd693381d..6b0a47b92b 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -86,3 +86,4 @@ Matthias Wientapper
Brent Coutts
Jens Arnold
Gerald Vanbaren
+Christi Scarborough