fix: 修复dialog字体问题

This commit is contained in:
姚彪
2023-12-24 14:34:49 +08:00
parent 7a4b411e03
commit bc9a8ef78b
2 changed files with 6 additions and 4 deletions

View File

@@ -7,6 +7,10 @@
<Window.Styles>
<Style Selector="Window">
<Setter Property="SizeToContent" Value="WidthAndHeight" />
<Setter Property="UseLayoutRounding" Value="True" />
<Setter Property="TransparencyLevelHint" Value="AcrylicBlur" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="FontFamily" Value="Ubuntu, Segoe UI, SF Pro Display, Noto Sans, Cantarel" />
</Style>
</Window.Styles>
</Window>
</Window>

View File

@@ -1,7 +1,5 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
xmlns:ia="clr-namespace:Avalonia.Xaml.Interactions.Core;assembly=Avalonia.Xaml.Interactions">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Add Resources Here -->
<ControlTheme x:Key="BtnStyle" TargetType="Button">
<Setter Property="Cursor" Value="Hand" />