Making a Recalbox theme

45 pages · 8 sections
FRENESDE Show everything Create my theme

Displaying conditionally

The 26 conditions: the machine, the screen, and the displayed system.

An if= condition makes a component appear only in certain cases.

<image name="fond" if="crt">…</image>

They combine with ! (not), & (and), | (or) — or, if you prefer words, not, and, or: if="crt and not tate". See Combining several conditions.

⚠️ An identifier missing from this list is ignored by Recalbox and reported as unknown in themes.log.

Everywhere — the machine and the screen

ConditionTrue when…
hd fhd vga qvgathe screen has that resolution
crtthe screen is a CRT tube
overscanthe picture overscans (CRT without Jamma)
tate tateleft taterightthe screen is vertical
jamma bartopthe machine is an arcade cabinet
ispc ispi isodroid isanbernicthe machine is that model
nomenumenus are disabled

Only where a system is displayed

These eight query the current system. They only apply in the Systems view and the Game list — elsewhere there is no system, and the condition is always false.

ConditionTrue when…
console handheld computer arcade engine port fantasythe system is of that type
virtualit is an automatic system (Favorites, Last played, All games…)
favoriteit is the automatic Favorites system
lastplayedit is the automatic Last played system

⚠️ favorite does not mean the highlighted game is a favorite: it refers to the system. There is no condition on a game or a folder — to react to a game’s content, use its variables (${game.isfavorite}) or ifexists.