mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
FS#10534: Make scrollbar width variable through a setting (useful for touchscreen targets)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22387 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
13c28e8cbb
commit
567d83e6be
5 changed files with 21 additions and 2 deletions
|
|
@ -26,7 +26,7 @@
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
#include "screen_access.h"
|
#include "screen_access.h"
|
||||||
|
|
||||||
#define SCROLLBAR_WIDTH 6
|
#define SCROLLBAR_WIDTH global_settings.scrollbar_width
|
||||||
|
|
||||||
enum list_wrap {
|
enum list_wrap {
|
||||||
LIST_WRAP_ON = 0,
|
LIST_WRAP_ON = 0,
|
||||||
|
|
|
||||||
|
|
@ -12671,3 +12671,17 @@
|
||||||
*: "Skin RAM usage"
|
*: "Skin RAM usage"
|
||||||
</voice>
|
</voice>
|
||||||
</phrase>
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
id: LANG_SCROLLBAR_WIDTH
|
||||||
|
desc: in Settings -> General -> Display -> Status-/Scrollbar
|
||||||
|
user: core
|
||||||
|
<source>
|
||||||
|
*: "Scroll Bar Width"
|
||||||
|
</source>
|
||||||
|
<dest>
|
||||||
|
*: "Scroll Bar Width"
|
||||||
|
</dest>
|
||||||
|
<voice>
|
||||||
|
*: "Scroll bar width"
|
||||||
|
</voice>
|
||||||
|
</phrase>
|
||||||
|
|
|
||||||
|
|
@ -329,8 +329,9 @@ MENUITEM_SETTING(buttonbar, &global_settings.buttonbar, NULL);
|
||||||
#endif
|
#endif
|
||||||
MENUITEM_SETTING(volume_type, &global_settings.volume_type, NULL);
|
MENUITEM_SETTING(volume_type, &global_settings.volume_type, NULL);
|
||||||
MENUITEM_SETTING(battery_display, &global_settings.battery_display, NULL);
|
MENUITEM_SETTING(battery_display, &global_settings.battery_display, NULL);
|
||||||
|
MENUITEM_SETTING(scrollbar_width, &global_settings.scrollbar_width, NULL);
|
||||||
MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON,
|
MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON,
|
||||||
&scrollbar_item, &statusbar,
|
&scrollbar_item, &scrollbar_width, &statusbar,
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#ifdef HAVE_REMOTE_LCD
|
||||||
&remote_statusbar,
|
&remote_statusbar,
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -769,6 +769,7 @@ struct user_settings
|
||||||
unsigned char remote_ui_vp_config[64]; /* viewport string for the remote lists */
|
unsigned char remote_ui_vp_config[64]; /* viewport string for the remote lists */
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
int scrollbar_width;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** global variables **/
|
/** global variables **/
|
||||||
|
|
|
||||||
|
|
@ -1550,6 +1550,9 @@ const struct settings_list settings[] = {
|
||||||
VIEWPORT_SETTING(remote_ui_vp_config, "remote ui viewport"),
|
VIEWPORT_SETTING(remote_ui_vp_config, "remote ui viewport"),
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
INT_SETTING(0, scrollbar_width, LANG_SCROLLBAR_WIDTH, 6, "scrollbar width",
|
||||||
|
UNIT_INT, 6, 20, 1, NULL, NULL, NULL),
|
||||||
};
|
};
|
||||||
|
|
||||||
const int nb_settings = sizeof(settings)/sizeof(*settings);
|
const int nb_settings = sizeof(settings)/sizeof(*settings);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue