I use <FluentTheme Mode="Dark" />
for my application. I really like it but i want to change part of the design. For example swap the background to a bright pink.
I tried overriding the style like this:
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Avalonia.Test"
x:Class="Avalonia.Test.App">
<Application.DataTemplates>
<local:ViewLocator />
</Application.DataTemplates>
<Application.Styles>
<FluentTheme Mode="Dark" />
<Style>
<Style.Resources>
<Color x:Key="ThemeBackgroundColor">#CCFF0068</Color>
<SolidColorBrush x:Key="ThemeBackgroundBrush" Color="{DynamicResource ThemeBackgroundColor}" />
</Style.Resources>
</Style>
</Application.Styles>
But sadly it doesnt work. No errors are thrown but the change doesnt apply. Does anyone have a tip on how to only change part of the FluentTheme of avalonia?