forked from len0rd/rockbox
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@23472 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8eefe98bf
commit
cb8527d073
4 changed files with 9 additions and 1 deletions
|
@ -200,6 +200,7 @@ static const struct wps_tag all_tags[] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{ WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL },
|
{ 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, "cd", WPS_RTC_REFRESH, NULL },
|
||||||
{ WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", 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 },
|
{ WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL },
|
||||||
|
|
|
@ -569,6 +569,12 @@ const char *get_token_value(struct gui_wps *gwps,
|
||||||
#else
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
|
case WPS_TOKEN_RTC_24HR_SETTING_MODE:
|
||||||
|
#if CONFIG_RTC
|
||||||
|
return global_settings.timeformat?NULL:"z";
|
||||||
|
#else
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CONFIG_RTC
|
#if CONFIG_RTC
|
||||||
case WPS_TOKEN_RTC_12HOUR_CFG:
|
case WPS_TOKEN_RTC_12HOUR_CFG:
|
||||||
|
|
|
@ -62,6 +62,7 @@ enum wps_token_type {
|
||||||
/* Time */
|
/* Time */
|
||||||
|
|
||||||
WPS_TOKEN_RTC_PRESENT,
|
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.
|
/* The begin/end values allow us to know if a token is an RTC one.
|
||||||
New RTC tokens should be added between the markers. */
|
New RTC tokens should be added between the markers. */
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
# Clock on RTC able targets, and disk access
|
# Clock on RTC able targets, and disk access
|
||||||
%V|-36|0|-6|8|0|-|-| # align on the right with room for 6 SYSFONT digits
|
%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"
|
# disk access "icon"
|
||||||
%V|-6|0|-|8|0|-|-| # align on the right with room for 1 SYSFONT digit
|
%V|-6|0|-|8|0|-|-| # align on the right with room for 1 SYSFONT digit
|
||||||
%?lh<*|>
|
%?lh<*|>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue