mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
69 lines
3.4 KiB
XML
69 lines
3.4 KiB
XML
<Application xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="DownKyi.App">
|
|
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
|
|
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceInclude Source="/Languanges/Default.axaml" />
|
|
<ResourceInclude Source="/Themes/ThemeDefault.axaml" />
|
|
<ResourceInclude Source="avares://DownKyi.Core/BiliApi/Zone/ZoneImages.axaml" />
|
|
<ResourceInclude Source="avares://DownKyi.Core/BiliApi/BilibiliImages.axaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<FontFamily x:Key="DefaultFont">Simsun,微软雅黑,Microsoft YaHei,苹方-简,宋体-简,fonts:Inter#Inter,$Default</FontFamily>
|
|
<FontFamily x:Key="ProgramFont">Simsun,微软雅黑,Microsoft YaHei,苹方-简,宋体-简,fonts:Inter#Inter,$Default</FontFamily>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
<Application.Styles>
|
|
<SimpleTheme />
|
|
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Simple.xaml" />
|
|
<StyleInclude Source="/Themes/Styles/loading.axaml" />
|
|
<Style Selector="Window">
|
|
<Setter Property="FontFamily" Value="{DynamicResource ProgramFont}" />
|
|
</Style>
|
|
<Style Selector="TemplatedControl">
|
|
<Setter Property="FontFamily" Value="{DynamicResource ProgramFont}" />
|
|
</Style>
|
|
<Style Selector="HeaderedContentControl">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid RowDefinitions="Auto,*" ColumnDefinitions="Auto,*">
|
|
<Border
|
|
ZIndex="1"
|
|
CornerRadius="{TemplateBinding CornerRadius}"
|
|
Padding="5,0,5,0"
|
|
Background="{DynamicResource ThemeBackgroundBrush}"
|
|
Margin="5,0,0,0">
|
|
<TextBlock
|
|
Text="{TemplateBinding Header}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
Foreground="{TemplateBinding Foreground}" />
|
|
</Border>
|
|
<Border
|
|
Grid.RowSpan="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,10,0,0"
|
|
BorderBrush="{TemplateBinding Background}"
|
|
BorderThickness="1">
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Application.Styles>
|
|
<TrayIcon.Icons>
|
|
<TrayIcons>
|
|
<TrayIcon Icon="/Resources/favicon.ico" ToolTipText="{StaticResource AppName}">
|
|
<!--<TrayIcon.Menu>
|
|
<NativeMenu>
|
|
<NativeMenuItem Header="退出" Click="NativeMenuItem_OnClick" />
|
|
</NativeMenu>
|
|
</TrayIcon.Menu>-->
|
|
</TrayIcon>
|
|
</TrayIcons>
|
|
</TrayIcon.Icons>
|
|
</Application> |