# Two styles, two layouts

Authorized 2026-10-28. The user approved one shared palette (including Flat's existing #D7FF64 lime) with an independently remembered accent per skin. Required result: real Kodi verification and screenshots of all four; publication waits for the user's explicit approval.

| Display name | Stable addon ID | Layout | Material owner |
|---|---|---|---|
| Normal | skin.milionar | sidebar | Normal Horizont (former Flat) |
| Modern | skin.milionar.modern | sidebar | existing Modern |
| Normal Horizont | skin.milionar.flat | horizontal | former Flat |
| Modern Horizont | skin.milionar.glass | horizontal | existing Modern |

## Single sources

The raw Classic tree remains the functional sidebar source, so both material families retain every control/action and each layout keeps its geometry. Normal's `compose.json` applies the flat recipe to that raw sidebar; other variants compose over the raw source without applying Normal first. `assets` in `wcs/skin/compose.py` imports shared material directories before layout overrides. The normal pair uses identical Flat material bytes and full palettes; the modern pair uses identical Modern material bytes and full palettes. No generated copies of Modern's material library remain in the horizontal overlay.

`gen_flat.py` owns the horizontal functional layout. `gen_glass.py` applies Modern's material recipe, generic dialog/background/animation includes, original sidebar glass on the header, and the original light renderer for its geometry-specific focus/mask. Independent blue/violet Glass materials and colours were removed. Layout-specific compact menus and progress clearance remain.

`gen_styles.py` derives Normal's sidebar presentation from the existing flat style, generates the accent-only themes and two Vinyl presentation files from one functional template. Source control IDs, actions, labels and loading indicator remain identical. The title picker retains its shared rounded branch for both Modern variants.

`compose_family.py` is the sole development composition implementation; existing compose entry points are thin compatibility wrappers. `sync_dev.sh` uses the same compositor as TV installation.

## Colour state

`wcs/skin/palette.py` is the single list of the ten accent choices. Normal retains the former Flat lime default; Modern retains its gold default. Theme files change only accent/contrast tokens, leaving backgrounds with the material family. `flat_ink` chooses readable dark/light text for solid accent controls.

`appearance.select_accent()` stores a successful choice in the active skin's persistent `milionar.accent` string. The service restores it after a confirmed, stable skin switch. It never reloads a skin while a modal confirmation is open. The installer carries widget settings as before but preserves the target skin's own accent. Native harness switching rechecks the screen after its settle delay, since Kodi's confirmation may appear after Home initially loads.

## Verification and publication

`test_styles.py` verifies exact palettes/material bytes/shared includes within the two pairs, the unchanged layout axes/menu entries, names/IDs, accent-only themes, Vinyl contracts and independent colour state. Existing Flat/Modern/Glass tests, installer tests and refresh-service tests cover shared behavior. The scheduler harness now isolates the appearance observer and hero helper thread, and uses the actual section slot counts.

Native frames and switch/navigation evidence live in `docs/design/unified/final/`. Original Modern reference is in `reference/modern.png`. Generators are reproducible and all four composed trees also build from the local release ZIP. Local packaging does not publish anything or change versions. Do not publish until the user approves the screenshots.

## Resume status above hero actions (2026-10-28)

Approved order in every skin: description → progress with episode/time-left caption → hero buttons. One shared `gen_cinema.py` template places the status at y344–374, between a 102px description ending at y334 and the unchanged 64px button row at y388. The same coordinates apply to sections, inline details and genres; the horizontal layout adds its existing y128 content inset. Button positions/visibility stay independent of resume state. All generated variants are regenerated; no manual edits to generated XML. New native screenshots and live pixel comparison evidence: `docs/design/progress-above-buttons/`. Publication still awaits approval.

## Horizontal widget frames and captions (2026-10-28)

Removed `gen_flat.py`'s white override of widget focus textures: every frame now
uses the shared `button_focus` accent, including music and genre rows. The shared
horizontal poster template keeps its 196×294 artwork, extends the backplate and
frame to 360px, and places its caption at x16/y304 with a 164×36 box. This gives
16px side insets, a 10px gap below the picture and 20px beneath the caption,
clearing Modern's rounded corners in both focus states. Horizontal rows start at
y452, preserving a roughly 48px bottom TV margin even with Modern's 1.05 lift.
The sidebar skins are unchanged. Generated section/detail/genre trees use the
same geometry; no hand patches or duplicate materials.

Evidence and checks: `docs/design/widget-card-fixes/README.md`. Publication was
authorized together with the subsequent native dialog correction below.

## Native dialog button padding (2026-10-28)

Both Normal skins preserve the 20px transparent border of Kodi's native button
textures. Replacing that padding with an opaque square had painted confirmation
buttons outside the panel. Square appearance is retained inside the native
canvas and slice geometry; the common recipe fixes confirmations, settings,
keyboard and other callers together. `gen_flat.py` owns the material and
`gen_styles.py` shares it with the sidebar layout. No per-dialog coordinate fixes.
Audit evidence: `docs/design/dialog-audit/README.md`. Deployment was requested
after verification; use `.agents/state/release.json` for the published version.
