Skip to content
xcentaurix edited this page Nov 30, 2026 · 14 revisions

SkinForge - Next generation Enigma2 skin design with a high level skin design language

An enigma2 skin is natively just a flat XML file: no includes, no macros, no relative positioning, no variables, no reuse. If you maintain more than one plugin and want a consistent look — or want to change a button style in one place instead of in every skin.xml that copy-pasted it — you're stuck hand-editing pixel coordinates in N files at once.

Modern enigma2 distributions add some more advanced features like includes, templates, panels. But those only provide limited support for hierarchical design with reusable building blocks. As those skin elements are rendered directly on the box on the fly, those shortcomings were probably required due to limited box processing power. This can be avoided by using an offline skin compiler.

SkinForge doesn't change what enigma2 itself understands — it compiles a richer source down to the plain, flat XML enigma2 actually loads.

SkinForge is not just a theoretical design study but has proven to work. The system skin MaterialSkinCockpit with about 300 screens has been designed and compiled with it.

Language levels

  1. XML — the flat XML enigma2 itself understands: what the compiler produces, the skin.xml the box loads.
  2. ZAML (Zenith Advanced Markup Language) — the language a skin is written in: the elements of an enigma2 skin in ZAML, with hierarchical includes with parameters, variables, relative positioning, frames, formulas, default widgets and compile-time checks of colors, variables and font heights, plus loops (a block repeated with an index or a list of values), tables (elements laid out in rows and columns, their positions and sizes worked out) and lists (a Listbox whose template row is written as a table). A skin is a skin.zml and the .zmlinc parts it includes, compiled with zmlcompile. See Authoring in ZAML and The ZAML compiler.

All plugins share the same compiler and the same Common directory of reusable building blocks (buttons, title bars, colors, frames, ...).

flowchart TD
    SKIN["skin.zml<br/>the skin: what it includes"] -->|zml2xml| XMLINC{{"xmlinc<br/>the compiler"}}
    PARTS[".zmlinc<br/>screens, bodies, parts"] -->|"zml2xml, when included"| XMLINC
    COMMON[("Common/<br/>shared .zmlinc building blocks")] -->|"zml2xml, when included"| XMLINC
    XMLINC --> FLAT["flat XML<br/>compiled, unformatted"]
    FLAT -->|xmlpretty| FINAL(["skin.xml<br/>what enigma2 loads"])
Loading

Pages

Page Content
Getting started Installation, the zmlcompile command, the directories and git repositories (src, cmn, dst) and how a skin is compiled
Skin examples Examples of for, table and list from the Cockpit skins, each with what it becomes, a whole screen built from a table and lists, why most screens fit that pattern, and the layout graphic generated during compile
Skin design guide How to structure a screen (frame, header, body, footer), the frame variables, writing a body with $width/$height, dialogs, the output resolution, checking a layout and changing a skin with the SVG tools
Authoring in ZAML The language: files, elements, loops, tables, lists, the <convert> template notation, formatting conventions and the tools
The ZAML compiler What the compiler resolves: includes, parameters, $vars, relative positioning, frames, screen families, formulas, default widgets and checks

Clone this wiki locally