Skip to content

Commit 9ae326c

Browse files
committed
🐛 临时处理 Avalonia 11.2.3 导致的 FluentAvalonia Icon 宽度不正确问题
1 parent 3dd8388 commit 9ae326c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/BD.WTTS.Client.Avalonia/UI/Styling/Controls.axaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:ms="https://steampp.net/settings"
55
xmlns:sys="using:System"
6+
xmlns:ui="using:FluentAvalonia.UI.Controls"
67
x:CompileBindings="True">
78
<Styles.Resources>
89
<ResourceDictionary>
@@ -39,6 +40,14 @@
3940
<Setter Property="FontFamily" Value="{Binding Source={x:Static ms:UISettings.FontName}, Path=Value, Mode=OneWay, Converter={StaticResource NameToFontFamilyConverter}}" />
4041
</Style>
4142

43+
<Style Selector="ui|FontIcon">
44+
<Setter Property="MinWidth" Value="16" />
45+
</Style>
46+
47+
<Style Selector="ui|SymbolIcon">
48+
<Setter Property="MinWidth" Value="16" />
49+
</Style>
50+
4251
<!--<Style Selector="TextBlock">
4352
<Setter Property="FontFamily" Value="{Binding Source={x:Static ms:UISettings.FontName}, Path=Value, Mode=OneWay, Converter={StaticResource NameToFontFamilyConverter}}" />
4453
</Style>-->

0 commit comments

Comments
 (0)