How siddy212/iconic-es-de works
1. This repository is not an application backend; it is a static theme package for EmulationStation-DE (ES-DE). The runtime is ES-DE itself, which loads the XML layouts and media assets in this repo to render system and gamelist screens.
2. The main entry points are the root XML files: theme.xml, theme-simple.xml, theme-detailed.xml, gameselector.xml, null.xml, colors.xml, and capabilities.xml. These define the high-level theme behavior, supported options, and which layouts ES-DE should present for different UI contexts.
3. The theme is organized around two major view families: system browsing and gamelist browsing. The README’s “System View” and “Gamelist View” correspond to different screen compositions, with the latter supporting textlist, carousel, and grid-style layouts.
4. A large amount of the structure lives under _inc/systems, which acts as the theme’s asset and layout library. This folder contains background sets, overlays, carousel icons, classic/modern/default variants, and many system-specific metadata XML files that map ES-DE system identifiers to artwork and presentation rules.
5. The metadata layer is split into metadata-global and metadata-custom. metadata-global holds broad mappings for platforms, collections, and special categories like favorites, last played, completed, and now playing. metadata-custom provides alternative mappings and artwork hooks for the customizable art style.
6. Custom collections are first-class parts of the theme rather than an afterthought. The repo includes dedicated theme folders such as mario, zelda, pokemon, sonic-the-hedgehog, final-fantasy, sailor-moon, vocaloid, tetris, now-playing, completed, and custom-collections, each with its own theme.xml for branded presentation.
7. Aspect ratio is a core architectural axis. The root contains layout variants for 1:1, 3:2, 4:3, 8:7, 16:9, 16:10, 19.5:9, and 21:9, each with -simple and -detailed variants. This means the theme is designed as a matrix of screen shapes × presentation density, not a single fixed UI.
8. The artwork pipeline is entirely file-based. Visuals live in _inc/images and _inc/fonts, while sounds live in _inc/sounds with named UI effects like back.wav, select.wav, scroll.wav, and launch.wav. ES-DE uses these assets directly at render time; there is no intermediate build step or service layer.
9. The theme supports user override boundaries through custom-backgrounds and custom-overlay. The README describes a fallback chain where ES-DE looks for ${system.theme}.webp first and then _default.webp, allowing local artwork replacement without editing the shipped XML. Overlays are layered on top of the base screen art and are only used in non-“Simple” variants.
10. The visual style is parameterized into Light, Dark, and Retro Gray, each combined with art styles like Classic, Modern, Nintendon’t, or Custom. This creates a separation between palette choice, artwork source, and layout complexity, which is why the repo has many XML permutations instead of one monolithic theme definition.
11. The data flow is ES-DE metadata → theme XML rules → layered artwork. Scraped game metadata, system theme IDs, favorite/last-played states, and collections determine which XML branch and asset file ES-DE selects, then the theme composes backgrounds, overlays, icons, box art, miximages, marquees, and text metadata into the final UI.
12. resources/background-template.afdesign suggests a source-artwork design asset for producing theme imagery. It reinforces that this repo is an art/layout distribution package, with design tooling upstream of the checked-in runtime assets.
13. The main architectural boundary is between static presentation assets in this repo and the ES-DE engine that interprets them. Performance considerations in the README, especially around layered grid views and non-simple variants, come from that runtime boundary: the more layers and media shown, the more GPU/VRAM ES-DE needs.
14. For an architecture diagram, the clearest model is: ES-DE UI state and scraped metadata feed into theme selection; the theme selects a screen template by aspect ratio, variant, and system/collection; templates pull from shared and overrideable asset libraries; the final composition is rendered with optional audio feedback.
Main entry points: systems System assets · theme.xml Theme entry · metadata-global Global maps · theme-simple.xml Simple theme
Components 28
Root layouts
Top-level theme entrypoints and presentation variants.
- Theme entry · Primary theme selector and bootstrap layout.
theme.xml - Simple theme · Reduced-density theme entry for simpler layouts.
theme-simple.xml - Detailed theme · Higher-density theme entry with more layered presentation.
theme-detailed.xml - Game selector · Entry for gamelist browsing behavior and screen selection.
gameselector.xml - Null screen · Fallback or empty-state layout used by the theme.
null.xml - Colors · Theme-wide color definitions and palette mode support.
colors.xml - Capabilities · Declares supported theme features and layout capabilities.
capabilities.xml - Aspect matrix · Screen-shape variants split into simple and detailed presentations.
Shared assets
Reusable imagery, fonts, sounds, and system libraries.
- System assets · Shared backgrounds, overlays, icons, fonts, and sounds for system browsing.
_inc/systems - Bg variants · Default, classic, modern, alternate, and custom background layers.
_inc/systems/default-backgrounds - Overlay variants · Default, classic, modern, alternate, and custom overlay layers.
_inc/systems/default-overlay - Carousel icons · System icon artwork used by browsing layouts.
_inc/systems/carousel-icons - UI sounds · Navigation and selection feedback used by ES-DE.
_inc/sounds
Metadata maps
System-to-artwork mapping layers used by ES-DE.
- Global maps · Broad system and collection mappings for standard theme styling.
_inc/systems/metadata-global - Custom maps · Alternative mappings and artwork hooks for custom art styles.
_inc/systems/metadata-custom
Branded themes
Dedicated collection and franchise presentation themes.
- Branded sets · Dedicated presentation themes for collections and franchises.
- Custom collections · Theme package for user-defined collections and curated lists.
custom-collections/theme.xml - Mario · Branded theme for the Mario collection.
mario/theme.xml - Zelda · Branded theme for the Zelda collection.
zelda/theme.xml - Pokémon · Branded theme for the Pokémon collection.
pokemon/theme.xml - Sonic · Branded theme for the Sonic collection.
sonic-the-hedgehog/theme.xml - Final Fantasy · Branded theme for the Final Fantasy collection.
final-fantasy/theme.xml - Sailor Moon · Branded theme for the Sailor Moon collection.
sailor-moon/theme.xml - Vocaloid · Branded theme for the Vocaloid collection.
vocaloid/theme.xml - Tetris · Branded theme for the Tetris collection.
tetris/theme.xml - Now playing · Presentation theme for currently playing content.
now-playing/theme.xml - Completed · Presentation theme for completed content.
completed/theme.xml
Runtime
ES-DE interprets these files at render time.
- ES-DE · Hosts the theme and resolves layouts, metadata, and media at runtime.
Connections 32
- ES-DE → Theme entry: loads · ES-DE starts from the main theme entry.
- ES-DE → Simple theme: loads · ES-DE can select the simplified root layout.
- ES-DE → Detailed theme: loads · ES-DE can select the detailed root layout.
- ES-DE → Game selector: loads · ES-DE uses gamelist browsing layouts from this entry.
- ES-DE → Null screen: fallback · Used when the theme needs an empty or neutral screen.
- Theme entry → Colors: uses · Theme entry pulls palette definitions.
- Theme entry → Capabilities: declares · Theme entry advertises supported features.
- Theme entry → Aspect matrix: routes · Selects aspect-ratio-specific layouts.
- Simple theme → Aspect matrix: routes · Simple density still follows the aspect-ratio matrix.
- Detailed theme → Aspect matrix: routes · Detailed density still follows the aspect-ratio matrix.
- Game selector → System assets: composes · Game browsing screens draw from the shared system library.
- System assets → Bg variants: includes · Background sets are one layer of the shared library.
- System assets → Overlay variants: includes · Overlay sets are layered on top of the base screens.
- System assets → Carousel icons: includes · Carousel and system icons are part of the shared library.
- System assets → UI sounds: includes · UI sounds are loaded directly by ES-DE.
- System assets → Global maps: indexed by · Global metadata maps connect system ids to presentation rules.
- System assets → Custom maps: indexed by · Custom metadata maps provide alternate artwork hooks.
- Global maps → Branded sets: maps · Global mappings include collection and franchise themes.
- Custom maps → Branded sets: maps · Custom mappings can redirect to branded presentation sets.
- Branded sets → Custom collections: contains · Collection-focused theme folder.
- Branded sets → Mario: contains · Franchise-specific theme folder.
- Branded sets → Zelda: contains · Franchise-specific theme folder.
- Branded sets → Pokémon: contains · Franchise-specific theme folder.
- Branded sets → Sonic: contains · Franchise-specific theme folder.
- Branded sets → Final Fantasy: contains · Franchise-specific theme folder.
- Branded sets → Sailor Moon: contains · Franchise-specific theme folder.
- Branded sets → Vocaloid: contains · Franchise-specific theme folder.
- Branded sets → Tetris: contains · Franchise-specific theme folder.
- Branded sets → Now playing: contains · State-based theme folder.
- Branded sets → Completed: contains · State-based theme folder.
- Global maps → ES-DE: consumed by · ES-DE metadata state selects which XML branch and assets are rendered.
- Aspect matrix → System assets: pulls · Aspect-specific layouts use shared media assets.