Uploaded August 2026 | Updated November 2026, 3 hours ago
I just built a Roslyn analyzer that catches Avalonia bugs my actual compiler misses — runtime crashes and previewer failures that silently slip through a "successful" build. This episode is the deep dive: fixing the worst style inheritance bugs in the theme library, unveiling that tool, and laying the groundwork for a token-based accent system that could kill 90% of my theme code duplication.
WHAT YOU'LL LEARN:
→ Why style inheritance is genuinely the hardest problem in Avalonia theming right now
→ How I finally fixed the "mangled" ButtonSpinner control (hover effects, full-height stretch, the works)
→ What "God XAML" actually is — a live Rosalyn Analyzer that spins up a temporary Avalonia project in the background to catch errors the standard compiler lets through
→ The token-based accent system I'm proposing next: one `accent` style + a secondary class (`primary`, `secondary`, `warning`...) instead of duplicating 30+ lines per color
→ Why this all matters: flip one accent color and every control in the app should update correctly, with zero exceptions
──────────────
⏱ TIMESTAMPS
0:00 – Style inheritance is mind-boggling (and the bane of Avalonia)
0:55 – Button spinners finally get proper hover effects
1:58 – Why style inheritance is genuinely broken right now
3:30 – The ButtonSpinner fix nobody wants to touch
5:20 – Introducing "God XAML" — catching bugs the compiler misses
6:08 – How the analyzer actually works under the hood
8:19 – The accent color duplication problem (300+ lines per control)
9:06 – Proposing a token-based accent system
11:09 – Stress-testing the new theme engine on ButtonSpinner
12:14 – Swap one accent color, everything updates correctly
──────────────
🔗 LINKS
GitHub: github.com/angelsix
Website: angelsix.com
──────────────
This is part of the ongoing Avalonia Themes series where I'm building out a proper theme engine from scratch — real problems, real fixes, zero shortcuts.
I just built a Roslyn analyzer that catches Avalonia bugs my actual compiler misses — runtime crashes and previewer failures that silently slip through a "successful" build. This episode is the deep dive: fixing the worst style inheritance bugs in the theme library, unveiling that tool, and laying the groundwork for a token-based accent system that could kill 90% of my theme code duplication.
WHAT YOU'LL LEARN:
→ Why style inheritance is genuinely the hardest problem in Avalonia theming right now
→ How I finally fixed the "mangled" ButtonSpinner control (hover effects, full-height stretch, the works)
→ What "God XAML" actually is — a live Rosalyn Analyzer that spins up a temporary Avalonia project in the background to catch errors the standard compiler lets through
→ The token-based accent system I'm proposing next: one `accent` style + a secondary class (`primary`, `secondary`, `warning`...) instead of duplicating 30+ lines per color
→ Why this all matters: flip one accent color and every control in the app should update correctly, with zero exceptions
──────────────
⏱ TIMESTAMPS
0:00 – Style inheritance is mind-boggling (and the bane of Avalonia)
0:55 – Button spinners finally get proper hover effects
1:58 – Why style inheritance is genuinely broken right now
3:30 – The ButtonSpinner fix nobody wants to touch
5:20 – Introducing "God XAML" — catching bugs the compiler misses
6:08 – How the analyzer actually works under the hood
8:19 – The accent color duplication problem (300+ lines per control)
9:06 – Proposing a token-based accent system
11:09 – Stress-testing the new theme engine on ButtonSpinner
12:14 – Swap one accent color, everything updates correctly
──────────────
🔗 LINKS
GitHub: github.com/angelsix
Website: angelsix.com
──────────────
This is part of the ongoing Avalonia Themes series where I'm building out a proper theme engine from scratch — real problems, real fixes, zero shortcuts.










