Map FluentStyles to XamlControlsResources

This commit is contained in:
Daniel Clark
2022-11-01 22:55:17 +00:00
parent eb44c983d7
commit 854d393b43
8 changed files with 26 additions and 7 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
<Application
x:Class="Builder.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:style="using:FluentAvalonia.Styling">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Styles>
<style:FluentAvaloniaTheme />
<XamlControlsResources />
<Style Selector="Button.Icon">
<Setter Property="FontSize" Value="16" />
<Setter Property="FontFamily" Value="{StaticResource SymbolThemeFontFamily}" />
+1
View File
@@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.Markup.Xaml;
using FluentAvalonia.Styling;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using PropertyChanged;
-1
View File
@@ -15,7 +15,6 @@
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0-preview3" />
<PackageReference Include="PropertyChanged.Fody" Version="4.0.5" />
<PackageReference Include="XamlNameReferenceGenerator" Version="1.3.4" />
<PackageReference Include="FluentAvaloniaUI" Version="2.0.0-preview3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Framework\Avalonia\Avalonia.csproj" />