Files
LanMountainDesktop/LanMontainDesktop/App.axaml

57 lines
2.3 KiB
Plaintext
Raw Normal View History

2026-02-26 23:08:19 +08:00
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2026-02-27 13:43:27 +08:00
xmlns:sty="using:FluentAvalonia.Styling"
2026-02-28 03:00:25 +08:00
xmlns:fi="using:FluentIcons.Avalonia"
2026-02-26 23:08:19 +08:00
x:Class="LanMontainDesktop.App"
xmlns:local="using:LanMontainDesktop"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
2026-03-03 04:56:04 +08:00
<Application.Resources>
<FontFamily x:Key="AppFontFamily">avares://LanMontainDesktop/Assets/Fonts#MiSans</FontFamily>
</Application.Resources>
2026-02-26 23:08:19 +08:00
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>
<Application.Styles>
2026-02-27 13:43:27 +08:00
<sty:FluentAvaloniaTheme />
2026-02-28 03:00:25 +08:00
<StyleInclude Source="avares://LanMontainDesktop/Styles/GlassModule.axaml" />
2026-03-03 04:56:04 +08:00
<Style Selector="Window">
<Setter Property="FontFamily" Value="{DynamicResource AppFontFamily}" />
</Style>
<Style Selector="UserControl">
<Setter Property="FontFamily" Value="{DynamicResource AppFontFamily}" />
</Style>
2026-02-28 03:00:25 +08:00
<Style Selector="fi|SymbolIcon">
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
<Setter Property="FontSize" Value="16" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
<Style Selector="fi|FluentIcon">
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
<Setter Property="FontSize" Value="16" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
<Style Selector="fi|SymbolIcon.icon-s, fi|FluentIcon.icon-s">
<Setter Property="FontSize" Value="12" />
</Style>
<Style Selector="fi|SymbolIcon.icon-m, fi|FluentIcon.icon-m">
<Setter Property="FontSize" Value="16" />
</Style>
<Style Selector="fi|SymbolIcon.icon-l, fi|FluentIcon.icon-l">
<Setter Property="FontSize" Value="20" />
</Style>
2026-02-26 23:08:19 +08:00
</Application.Styles>
2026-02-27 13:43:27 +08:00
</Application>