Making a Recalbox theme

45 pages · 8 sections
FRENESDE Show everything Create my theme

Your custom variables

Your own named values — a color, a font — created from the studio.

The variables on the previous page are Recalbox's: ${system}, ${game.developer}… They are provided, you only use them.

These ones are yours. You give a name to a value — a color, a font, a path — you use that name everywhere, and the day you change the value, the whole theme follows. That is what makes color options possible: a choice redefines the variable, and nothing else.

Creating them in the studio

  1. open Variables in the toolbar: the panel opens on the right;
  2. + New variable, give it a name, then say what it is — a color (you get the color picker, transparency included), a font (chosen among the theme's), or another value (a text, a path, or another variable);
  3. in a color field, the little { } next to the field offers yours, and in the font list they appear at the top.

The studio displays the computed value under the field: a variable that uses another one can be read at a glance.

By hand, without the studio

They are written in a <variables> block. The tag, the naming rules, the scope and the conditions are explained on Your own variables, in “A theme's structure”.