Browse Source
When the theme is materialized as a deferred keyed resource (as ControlCatalog declares it in App.xaml) the Window ControlTheme's Background styled setter never resolves its DynamicResource, leaving the white transparency fallback visible under semi-transparent page layers — dark mode composited to light gray. Inner controls were unaffected because template-level DynamicResource resolves through the visual tree. Add a canvas border in the window template that paints SolidBackgroundFillColorBaseBrush via the tree-anchored path; a user-set Background still paints over it via the existing TemplateBinding border. The styled-setter anomaly itself is an Avalonia core issue to investigate. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>pull/21771/head
1 changed files with 7 additions and 0 deletions
Loading…
Reference in new issue