new skin token: %cx - 24 hour time format enabled in the setting.. e.g %?cx<24 hour|12 hour>
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23474 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e702e5dbf8
commit
9cd15dad9d
4 changed files with 9 additions and 1 deletions
|
@ -200,6 +200,7 @@ static const struct wps_tag all_tags[] = {
|
|||
#endif
|
||||
|
||||
{ WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL },
|
||||
{ WPS_TOKEN_RTC_24HR_SETTING_MODE, "cx", WPS_REFRESH_STATIC, NULL },
|
||||
{ WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL },
|
||||
{ WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL },
|
||||
{ WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL },
|
||||
|
|
|
@ -569,6 +569,12 @@ const char *get_token_value(struct gui_wps *gwps,
|
|||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
case WPS_TOKEN_RTC_24HR_SETTING_MODE:
|
||||
#if CONFIG_RTC
|
||||
return global_settings.timeformat?NULL:"z";
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
#if CONFIG_RTC
|
||||
case WPS_TOKEN_RTC_12HOUR_CFG:
|
||||
|
|
|
@ -62,6 +62,7 @@ enum wps_token_type {
|
|||
/* Time */
|
||||
|
||||
WPS_TOKEN_RTC_PRESENT,
|
||||
WPS_TOKEN_RTC_24HR_SETTING_MODE,
|
||||
|
||||
/* The begin/end values allow us to know if a token is an RTC one.
|
||||
New RTC tokens should be added between the markers. */
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
# Clock on RTC able targets, and disk access
|
||||
%V|-36|0|-6|8|0|-|-| # align on the right with room for 6 SYSFONT digits
|
||||
%?cc<%?ca<%?St|time format|<%cH|%cI>:%cM|--:-->|>
|
||||
%?cc<%?ca<%?cx<%cH|%cI>:%cM|--:-->|>
|
||||
# disk access "icon"
|
||||
%V|-6|0|-|8|0|-|-| # align on the right with room for 1 SYSFONT digit
|
||||
%?lh<*|>
|
||||
|
|
Loading…
Reference in a new issue