You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
1.6 KiB

<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MyAvaloniaApp.App"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="Resources/Colors.axaml"/>
<!-- 根据系统语言选择资源文件,默认使用中文 -->
<ResourceInclude Source="Resources/Strings.zh-CN.axaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<Application.Styles>
<FluentTheme />
<StyleInclude Source="avares://DialogHost.Avalonia/Styles.xaml" />
<!-- AvaloniaEdit 样式 -->
<StyleInclude Source="avares://AvaloniaEdit/Themes/Fluent/AvaloniaEdit.xaml" />
<!-- Linux字体回退配置 -->
<Style Selector="TextBlock">
<Setter Property="FontFamily" Value="Inter, DejaVu Sans, Liberation Sans, Arial, sans-serif" />
</Style>
<Style Selector="Button">
<Setter Property="FontFamily" Value="Inter, DejaVu Sans, Liberation Sans, Arial, sans-serif" />
</Style>
<Style Selector="Label">
<Setter Property="FontFamily" Value="Inter, DejaVu Sans, Liberation Sans, Arial, sans-serif" />
</Style>
</Application.Styles>
</Application>