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
When any of DarkerBrush or LighterBrush are changed (i.e. full brush replaced, theme switched...) DrawingBrush won't reflect any of these changes when it's used as a Background on any Border.
Interestingly, any GeometryDrawing.Pen usage does work.
Workaround
Make whole DrawingBrush theme being replaced on theme switch. Can be achieved by having different DrawingBrush'es in different theme dictionaries. In which case DynamicResource can be replaced with StaticResource (as dependent brushes are static relatively to this specific theme variant).
Avalonia version
11.2.4, master
OS
No response
Additional context
Likely because geometries are not yet compositor aware resource.
The text was updated successfully, but these errors were encountered:
Describe the bug
As per title
To Reproduce
When any of
DarkerBrush
orLighterBrush
are changed (i.e. full brush replaced, theme switched...) DrawingBrush won't reflect any of these changes when it's used as a Background on any Border.Interestingly, any
GeometryDrawing.Pen
usage does work.Workaround
Make whole DrawingBrush theme being replaced on theme switch. Can be achieved by having different DrawingBrush'es in different theme dictionaries. In which case DynamicResource can be replaced with StaticResource (as dependent brushes are static relatively to this specific theme variant).
Avalonia version
11.2.4, master
OS
No response
Additional context
Likely because geometries are not yet compositor aware resource.
The text was updated successfully, but these errors were encountered: