Making a Recalbox theme

49 pages · 8 sections
⌕
FRENESDE Show everything Create my theme

datetime — a date

The date of the last play, and in which form to write it.

A datetime displays a date Recalbox knows, never free text. Only one reserved name is a datetime: md_lastplayed, the date of the last play. Its display property says in which form to write it.

<datetime name="md_lastplayed">
  <pos>0.06 0.66</pos>
  <fontSize>0.028</fontSize>
  <color>C6CBD8</color>
  <display>date</display>
</datetime>

⚠️ md_releasedate is not a datetime. The release date is a text or a scrolltext, and Recalbox writes 1991-06 in it itself. Writing <datetime name="md_releasedate"> does not change the form of that date: the tag/name pair is refused, and the release date disappears from the screen.

display — the date's form

To writeWhat shows
date1991/06/23
dateTime1991/06/23 14:05:30
year1991
time14:05:30
realTimethe current time — not a game date
RelativeToNow“3 days ago”

⚠️ Case matters. datetime does not work, it must be dateTime; neither does relativeToNow, it must be RelativeToNow. An unknown value keeps the previous form and lands in themes.log.

The properties (12)

PropertyRole
pos size originplacement
displaythe date's form
color backgroundColorcolors
fontPath fontSizefont
alignment forceUppercaseformatting
zIndex disableddepth, switching off

⚠️ A datetime without color is invisible: it is the only component that resets the color to zero instead of keeping the previous one. And of alignment, only the horizontal part is kept — the vertical is always centered.

A game without a date shows an empty line: it is the data that is missing, not the theme.