Skip to content

Commit

Permalink
🐛 临时处理 Avalonia 11.2.3 导致的 FluentAvalonia Icon 宽度不正确问题
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbadmin committed Jan 20, 2025
1 parent 3dd8388 commit 9ae326c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/BD.WTTS.Client.Avalonia/UI/Styling/Controls.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ms="https://steampp.net/settings"
xmlns:sys="using:System"
xmlns:ui="using:FluentAvalonia.UI.Controls"
x:CompileBindings="True">
<Styles.Resources>
<ResourceDictionary>
Expand Down Expand Up @@ -39,6 +40,14 @@
<Setter Property="FontFamily" Value="{Binding Source={x:Static ms:UISettings.FontName}, Path=Value, Mode=OneWay, Converter={StaticResource NameToFontFamilyConverter}}" />
</Style>

<Style Selector="ui|FontIcon">
<Setter Property="MinWidth" Value="16" />
</Style>

<Style Selector="ui|SymbolIcon">
<Setter Property="MinWidth" Value="16" />
</Style>

<!--<Style Selector="TextBlock">
<Setter Property="FontFamily" Value="{Binding Source={x:Static ms:UISettings.FontName}, Path=Value, Mode=OneWay, Converter={StaticResource NameToFontFamilyConverter}}" />
</Style>-->
Expand Down

0 comments on commit 9ae326c

Please sign in to comment.