From 466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Fri, 26 Feb 2010 03:45:41 +0000 Subject: 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 --- apps/gui/skin_engine/skin_tokens.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/gui/skin_engine/skin_tokens.c') diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 1189925ea0..a682bdf87a 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -416,6 +416,14 @@ const char *get_token_value(struct gui_wps *gwps, case WPS_TOKEN_PLAYLIST_ENTRIES: snprintf(buf, buf_size, "%d", playlist_amount()); return buf; + + case WPS_TOKEN_LIST_TITLE_TEXT: + return (char*)token->value.data; + case WPS_TOKEN_LIST_TITLE_ICON: + if (intval) + *intval = token->value.i; + snprintf(buf, buf_size, "%d", token->value.i); + return buf; case WPS_TOKEN_PLAYLIST_NAME: return playlist_name(NULL, buf, buf_size); -- cgit v1.2.3