11<Application xmlns =" https://github.com/avaloniaui"
2- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3- x : Class =" Modulus.App.App"
4- RequestedThemeVariant =" Default" >
5- <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
6-
2+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3+ x : Class =" Modulus.App.App"
4+ RequestedThemeVariant =" Default" >
5+ <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available
6+ options. -->
7+ <Application .Resources>
8+ <ResourceDictionary >
9+ <ResourceDictionary .MergedDictionaries>
10+ <ResourceInclude Source =" avares://Modulus.App/Assets/Icons.axaml" />
11+ </ResourceDictionary .MergedDictionaries>
12+ </ResourceDictionary >
13+ </Application .Resources>
714 <Application .Styles>
815 <FluentTheme />
916
1017 <Style Selector =" Button.transparent" >
11- <Setter Property =" Background" Value =" Transparent" />
12- <Setter Property =" BorderThickness" Value =" 0" />
18+ <Setter Property =" Background" Value =" Transparent" />
19+ <Setter Property =" BorderThickness" Value =" 0" />
1320 </Style >
1421 <Style Selector =" Button.transparent:pointerover /template/ ContentPresenter" >
15- <Setter Property =" Background" Value =" {DynamicResource SystemFillColorNeutralSubtleSecondary}" />
22+ <Setter Property =" Background"
23+ Value =" {DynamicResource SystemFillColorNeutralSubtleSecondary}" />
1624 </Style >
1725 <Style Selector =" Button.transparent:pressed /template/ ContentPresenter" >
18- <Setter Property =" Background" Value =" {DynamicResource SystemFillColorNeutralSubtleTertiary}" />
26+ <Setter Property =" Background"
27+ Value =" {DynamicResource SystemFillColorNeutralSubtleTertiary}" />
1928 </Style >
2029
2130 <!-- 卡片式切换按钮样式 -->
2231 <Style Selector =" ToggleButton" >
23- <Setter Property =" Background" Value =" Transparent" />
24- <Setter Property =" BorderThickness" Value =" 0" />
25- <Setter Property =" Padding" Value =" 8" />
26- <Setter Property =" CornerRadius" Value =" 4" />
32+ <Setter Property =" Background" Value =" Transparent" />
33+ <Setter Property =" BorderThickness" Value =" 0" />
34+ <Setter Property =" Padding" Value =" 8" />
35+ <Setter Property =" CornerRadius" Value =" 4" />
2736 </Style >
2837 <Style Selector =" ToggleButton:pointerover /template/ ContentPresenter" >
29- <Setter Property =" Background" Value =" {DynamicResource SystemFillColorNeutralSubtleSecondary}" />
38+ <Setter Property =" Background"
39+ Value =" {DynamicResource SystemFillColorNeutralSubtleSecondary}" />
3040 </Style >
3141 <Style Selector =" ToggleButton:checked /template/ ContentPresenter" >
32- <Setter Property =" Background" Value =" {DynamicResource SystemAccentColorLight3}" />
42+ <Setter Property =" Background" Value =" {DynamicResource SystemAccentColorLight3}" />
3343 </Style >
3444
3545 <!-- 危险按钮样式 -->
3646 <Style Selector =" Button.danger" >
37- <Setter Property =" Background" Value =" Transparent" />
38- <Setter Property =" BorderThickness" Value =" 0" />
39- <Setter Property =" Padding" Value =" 8" />
40- <Setter Property =" CornerRadius" Value =" 4" />
41- <Setter Property =" Foreground" Value =" {DynamicResource SystemFillColorCritical}" />
47+ <Setter Property =" Background" Value =" Transparent" />
48+ <Setter Property =" BorderThickness" Value =" 0" />
49+ <Setter Property =" Padding" Value =" 8" />
50+ <Setter Property =" CornerRadius" Value =" 4" />
51+ <Setter Property =" Foreground" Value =" {DynamicResource SystemFillColorCritical}" />
4252 </Style >
4353 <Style Selector =" Button.danger:pointerover /template/ ContentPresenter" >
44- <Setter Property =" Background" Value =" {DynamicResource SystemFillColorCriticalSubtleSecondary}" />
54+ <Setter Property =" Background"
55+ Value =" {DynamicResource SystemFillColorCriticalSubtleSecondary}" />
4556 </Style >
4657 <Style Selector =" Button.danger:pressed /template/ ContentPresenter" >
47- <Setter Property =" Background" Value =" {DynamicResource SystemFillColorCriticalSubtleTertiary}" />
58+ <Setter Property =" Background"
59+ Value =" {DynamicResource SystemFillColorCriticalSubtleTertiary}" />
4860 </Style >
4961
5062 <!-- 插件卡片样式 -->
5163 <Style Selector =" Border.plugin-card" >
52- <Setter Property =" Background" Value =" {DynamicResource SystemAltHighColor}" />
53- <Setter Property =" BorderThickness" Value =" 1" />
54- <Setter Property =" BorderBrush" Value =" {DynamicResource SystemControlTransparentBrush}" />
55- <Setter Property =" CornerRadius" Value =" 8" />
56- <Setter Property =" Margin" Value =" 0,0,16,16" />
57- <Setter Property =" Padding" Value =" 16" />
64+ <Setter Property =" Background" Value =" {DynamicResource SystemAltHighColor}" />
65+ <Setter Property =" BorderThickness" Value =" 1" />
66+ <Setter Property =" BorderBrush" Value =" {DynamicResource SystemControlTransparentBrush}" />
67+ <Setter Property =" CornerRadius" Value =" 8" />
68+ <Setter Property =" Margin" Value =" 0,0,16,16" />
69+ <Setter Property =" Padding" Value =" 16" />
5870 </Style >
5971 <Style Selector =" Border.plugin-card:pointerover" >
60- <Setter Property =" BorderBrush" Value =" {DynamicResource SystemAccentColorLight2}" />
61- <Setter Property =" Background" Value =" {DynamicResource SystemAltMediumHighColor}" />
72+ <Setter Property =" BorderBrush" Value =" {DynamicResource SystemAccentColorLight2}" />
73+ <Setter Property =" Background" Value =" {DynamicResource SystemAltMediumHighColor}" />
6274 </Style >
6375 </Application .Styles>
64- </Application >
76+ </Application >
0 commit comments