diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 10:52:09 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 10:52:09 +0000 |
| commit | 5f6047075f682e92fe9c3faf67c6d58046ef83ae (patch) | |
| tree | b7d6e33e00aed4c7e8c32f2ac47258fe7299b665 | |
| parent | 64c53c6dc25b70ef469398b1362a64c4f4413aad (diff) | |
| download | rockbox-5f6047075f682e92fe9c3faf67c6d58046ef83ae.zip rockbox-5f6047075f682e92fe9c3faf67c6d58046ef83ae.tar.gz rockbox-5f6047075f682e92fe9c3faf67c6d58046ef83ae.tar.bz2 rockbox-5f6047075f682e92fe9c3faf67c6d58046ef83ae.tar.xz | |
Patch #985429 by Christi Scarborough, solid progress bar
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4851 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/lang/english.lang | 6 | ||||
| -rw-r--r-- | apps/settings.c | 1 | ||||
| -rw-r--r-- | apps/settings.h | 3 | ||||
| -rw-r--r-- | apps/settings_menu.c | 7 | ||||
| -rw-r--r-- | apps/wps-display.c | 8 | ||||
| -rw-r--r-- | docs/CREDITS | 1 |
6 files changed, 24 insertions, 2 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 062c7a0..16c5497 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 8434d3e..9f4405f 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 b7b0864..5180983 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 057191e..9aae28a 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 17e5fa5..701d2e2 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 0bd6933..6b0a47b 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -86,3 +86,4 @@ Matthias Wientapper Brent Coutts Jens Arnold Gerald Vanbaren +Christi Scarborough |