[deep-review] C3: A2UI CardBackground theme override is parsed but never applied
Summary
A2UITheme parses a CardBackground value from the theme JSON, but CardRenderer never applies it to the rendered control. As a result, an agent that pushes a theme override expecting cards to use a custom background sees no effect.
Where
- Theme parse:
src/OpenClaw.Tray.WinUI/A2UI/Theming/(look for theCardBackgroundmember of the theme record). - Apply site that's missing it:
src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/ContainerRenderers.cs(CardRenderer).
Why it matters
A2UI theme overrides are a contract with agent authors. Silently dropping one of the documented theme fields makes the documented contract a lie, and the failure mode is visual — the agent doesn't know it didn't work.
Proposed fix
In CardRenderer, read the active theme's CardBackground; if present, assign it to the rendered card's Background brush. Fall back to the existing default when null.
Add a UI test: push a theme with a non-default CardBackground and a card, assert the rendered card's Background is the expected brush.
Severity
Bug — theming contract violation.
Closing during the post-refactor deep-review cleanup. CardBackground remains captured in the #372 tracker, but the old generated PRs were stale and this can be re-opened as a fresh focused bug if it resurfaces. This keeps the signal while reducing stale one-off issue noise.