You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-review] C3: A2UI CardBackground theme override is parsed but never applied #343
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 the CardBackground member 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.
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.
Activity
fix(a2ui): apply CardBackground theme override to Card renderer
shanselman commentedon May 18, 2026
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.