Uploaded November 2025 | Updated November 2026, 4 hours ago
Support me in my journey to giving back to the industry all my knowledge and helping the world with what I do. Spreading knowledge to those who cannot afford an education and helping those who want to better themselves.
Avalonia UI
avaloniaui.net
Source Code to Series
github.com/angelsix/youtube/tree/develop/StreamElectronics
Code Commit This Episode
github.com/angelsix/youtube/commit/8960484b118297a2d942b96b62aefc7ae61a042b
Support what I do and pay for me to survive
angelsix.com/donate
Live Chat at Discord
discordapp.com/invite/eHr5BMk
Support me in my journey to giving back to the industry all my knowledge and helping the world with what I do. Spreading knowledge to those who cannot afford an education and helping those who want to better themselves.
Avalonia UI
avaloniaui.net
Source Code to Series
github.com/angelsix/youtube/tree/develop/StreamElectronics
Code Commit This Episode
github.com/angelsix/youtube/commit/8960484b118297a2d942b96b62aefc7ae61a042b
Support what I do and pay for me to survive
angelsix.com/donate
Live Chat at Discord
discordapp.com/invite/eHr5BMk

![Pixel Perfect Avalonia UI - How It Actually Got Built
For the last month Ive started every video saying were nearly there. This time we actually are. The whole AvaloniaThemeLab UI is now exactly how I want it, every control, every padding, every hover and every click. Over 200 hours went into the last two videos alone to get here, and this is the point where we can stop tweaking visuals and finally start reviewing the code behind them.
So this is a proper look round the finished UI, then the honest answer to the question I keep getting about AI. It isnt me typing do this into Claude. I hand-built the theme engine and worked out the rules first. Ive spent months training a Qwen 27B model on five to ten years of my own videos and my guidance on how Avalonia code should be written, on my own RTX 6000 Pro rig and DGX Sparks. AI Mecca, my own harness, runs the guard tools and compile checks, and guard XAML throws warnings and errors when XAML isnt written to my standards. Only then does the AI apply those rules across the rest of the files.
Next up, with the UI finished, we go through every file of theme code one control at a time. The visual first, then the template, then the styles, and anything that isnt done the way Id do it gets put right. Part of the series on building a custom Avalonia UI theme from scratch.
Rusty the pug has signed off every padding from the sofa. 🐶
━━━━━━━━━━━━━━━━━━━
📌 WHAT YOULL LEARN
━━━━━━━━━━━━━━━━━━━
• What a finished, pixel perfect Avalonia theme looks like across every control
• What makes paddings, hovers and clicks look right together
• Why its just vibe coding doesnt describe this work
• How a model trained on your own videos writes code the way you would
• What a custom harness adds on top of the model itself
• How guard XAML stops a model writing XAML the wrong way
• Why theres no point reviewing code until its finished
• How to review a control file: the visual, then the template, then the styles
━━━━━━━━━━━━━━━━━━━
⏱ TIMESTAMPS
━━━━━━━━━━━━━━━━━━━
[0:00] - The whole UI is finally right
[0:32] - Launching AvaloniaThemeLab in Rider
[1:04] - Flicking through every control
[1:30] - Tell me anything you dont like
[2:24] - Youve seen me using AI, so heres the truth
[3:27] - Training Qwen 27B on my old videos
[3:46] - The custom harness behind it all
[4:37] - Everything pixel perfect and spot on
[5:16] - What has been done: the theme engine
[5:51] - Models trained to understand Avalonia
[6:20] - AI Mecca and the guard XAML checks
[7:12] - Next: reviewing every file of code
[7:41] - Why AI blitzes the other files
[8:06] - What AI is actually for, and isnt
[8:54] - The first file review, start to finish
[9:23] - Template first, then the styles
[10:50] - Could we release this as it is?
[11:08] - Over to you, and what comes next
━━━━━━━━━━━━━━━━━━━
🔗 LINKS & RESOURCES
━━━━━━━━━━━━━━━━━━━
▶ Full Avalonia Themes Playlist: https://www.youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ Source Code (AvaloniaThemeLab): https://github.com/angelsix/youtube/tree/develop/AvaloniaThemeLab
▶ GitHub: https://github.com/angelsix
▶ Website: https://www.angelsix.com
━━━━━━━━━━━━━━━━━━━
📚 SERIES - Avalonia UI Theming
━━━━━━━━━━━━━━━━━━━
▶ Full series: https://www.youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
23 - Reviewing an Overnight AI Agent Run - https://www.youtube.com/watch?v=J6Hbp6HeCN8
22 - Code Reviewing Is Boring - https://www.youtube.com/watch?v=yiZcrImMsXg
21 - Hover Cropping, Corners and Contrast - https://www.youtube.com/watch?v=Oih-a3t687E
20 - Build a Light vs Dark Preview Control - https://www.youtube.com/watch?v=tYTMNrN-3rw
24 - This Video - The finished theme UI, and how AI actually built it
#avalonia #avaloniaui #xaml #csharp #dotnet #aiagents #localllm #uitheming Pixel Perfect Avalonia UI - How It Actually Got Built](https://i.ytimg.com/vi/j7ok8wt1VcQ/mqdefault.jpg)

![One Scale To Rule Them All 💍 in Avalonia theme
Last week I released the Avalonia theme engine and a load of you jumped straight on it. So this is the follow-up, covering everything I have added since.
Along the way I build a settings page that rewrites the theme at runtime, wire the tree view and the colour pickers that Avalonia 12 added into our engine, and chase down every control that was not correctly data bound. The whole theme now scales from a single value. Part of the series on building a custom Avalonia UI theme from scratch.
📌 WHAT YOULL LEARN
• How a single padding value can change the spacing of every control at once
• Why one base size can scale the entire UI without any render transforms
• How to switch a whole theme between square and rounded corners at runtime
• How the tree view and colour pickers from Avalonia 12 slot into a custom engine
• How to swap every font in the UI from one data bound property
• Why deleting thousands of duplicate lines made the layout bugs obvious
• How to build the next theme from a skeleton application
⏱ TIMESTAMPS
[0:14] - The theme engine is out
[0:19] - What is new in this revision
[0:43] - Why Avalonia themes stagnate
[3:17] - The theme settings page
[3:39] - Universal spacing at runtime
[4:47] - Base size scales everything
[7:09] - Making the whole UI square
[7:32] - Dark and light palettes
[8:02] - Bugs the settings page exposed
[8:48] - Changing every font at once
[9:24] - Table view and colour pickers
[10:10] - Building a skeleton theme
[11:28] - What theme comes next
🔗 LINKS & RESOURCES
▶ Full Avalonia Themes Playlist: https://www.youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ Source Code (AvaloniaThemeLab): https://github.com/angelsix/youtube/tree/develop/AvaloniaThemeLab
▶ GitHub: https://github.com/angelsix
▶ Website: https://www.angelsix.com
📚 SERIES - Avalonia UI Theming
▶ Full series: https://www.youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ 18 - Checkbox Control Deep Dive - https://www.youtube.com/watch?v=uIimnwjITT0
▶ 19 - Designing a Theme System From Scratch - https://www.youtube.com/watch?v=I5halHoNfH0
▶ 20 - Button Spinner XAML Anatomy - https://www.youtube.com/watch?v=WMaTbXkvm9g
▶ 21 - Buttons - https://www.youtube.com/watch?v=oKjk6pyyARI
▶ 22 - Hand Coded From Scratch - https://www.youtube.com/watch?v=rUKlQnjU0tc
▶ 23 - This Video - The new features, the runtime settings page, and what comes next
#avalonia #avaloniaui #xaml #csharp #dotnet #theming #desktopapp #mvvm One Scale To Rule Them All 💍 in Avalonia theme](https://i.ytimg.com/vi/jmIz2faBA1c/mqdefault.jpg)






