diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-26 03:45:41 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-26 03:45:41 +0000 |
commit | 466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9 (patch) | |
tree | 660ff0f1991703cd87e77bab3cccca190d0f5e28 /apps/gui/statusbar-skinned.c | |
parent | ca755f767c2d67fb2b52c292402b3b3d3be28244 (diff) | |
download | rockbox-466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9.tar.gz rockbox-466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9.tar.bz2 rockbox-466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9.zip |
2 new tags for the base skin.
%Lt - the title text for the current list
%Li - the icon number. Same order as the CustomIcons list, except the first icon is the "no icon" icon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24917 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r-- | apps/gui/statusbar-skinned.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index f5458fb252..2ebdcca048 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c @@ -33,6 +33,7 @@ #include "statusbar-skinned.h" #include "debug.h" #include "font.h" +#include "icon.h" /* currently only one wps_state is needed */ @@ -44,6 +45,25 @@ static struct wps_sync_data sb_skin_sync_data = { .do_full_update = false /* initial setup of wps_data */ static int update_delay = DEFAULT_UPDATE_DELAY; +bool sb_set_title_text(char* title, enum themable_icons icon, enum screen_type screen) +{ + int i; + bool retval = false; + for(i=0; i<sb_skin_data[screen].num_tokens; i++) + { + if (sb_skin_data[screen].tokens[i].type == WPS_TOKEN_LIST_TITLE_TEXT) + { + sb_skin_data[screen].tokens[i].value.data = title; + retval = true; + } + else if (sb_skin_data[screen].tokens[i].type == WPS_TOKEN_LIST_TITLE_ICON) + { + sb_skin_data[screen].tokens[i].value.i = icon+1; + } + } + return retval; +} + void sb_skin_data_load(enum screen_type screen, const char *buf, bool isfile) { |