|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | 3 | xmlns:sty="using:FluentAvalonia.Styling" |
4 | 4 | x:Class="Amethyst.App" |
5 | | - xmlns:local="using:Amethyst" |
6 | 5 | xmlns:utils="clr-namespace:Amethyst.Utils" |
7 | | - xmlns:fluent="clr-namespace:FluentIcons.Avalonia.Fluent;assembly=FluentIcons.Avalonia.Fluent" |
8 | | - x:DataType="local:App"> |
| 6 | + xmlns:fluent="clr-namespace:FluentIcons.Avalonia.Fluent;assembly=FluentIcons.Avalonia.Fluent"> |
9 | 7 | <Application.Resources> |
10 | 8 | <ResourceDictionary> |
11 | 9 | <utils:InverseBoolConverter x:Key="InverseBoolConverter" /> |
|
14 | 12 | <utils:OpacityHalfBoolConverter x:Key="BoolToOpacityHalfConverter" /> |
15 | 13 | <utils:OpacityHalfBoolInvertedConverter x:Key="BoolToOpacityHalfInvertedConverter" /> |
16 | 14 |
|
17 | | - <SolidColorBrush x:Key="AccentButtonBorderBrush" Color="HotPink" /> |
18 | | - <SolidColorBrush x:Key="AcrylicBackgroundFillColorBaseBrush" Color="HotPink" /> |
19 | | - <SolidColorBrush x:Key="AcrylicInAppFillColorDefaultBrush" Color="HotPink" /> |
20 | | - <SolidColorBrush x:Key="CalibrationPaneBackgroundAcrylicBrush" Color="HotPink" /> |
21 | | - <SolidColorBrush x:Key="CardBackgroundFillColorDefaultBrush" Color="HotPink" /> |
22 | | - <SolidColorBrush x:Key="CardBackgroundFillColorSecondaryBrush" Color="HotPink" /> |
23 | | - <SolidColorBrush x:Key="CardStrokeColorDefaultBrush" Color="HotPink" /> |
24 | | - <SolidColorBrush x:Key="ControlDisplayBackgroundBrush" Color="HotPink" /> |
25 | | - <SolidColorBrush x:Key="ControlDisplayTextBrush" Color="HotPink" /> |
26 | | - <SolidColorBrush x:Key="NoThemeColorSolidColorBrush" Color="HotPink" /> |
27 | | - <SolidColorBrush x:Key="NoThemeColorSolidColorBrushOpposite" Color="HotPink" /> |
28 | | - <SolidColorBrush x:Key="SystemControlBackgroundChromeMediumLowBrush" Color="HotPink" /> |
29 | | - <SolidColorBrush x:Key="SystemFillColorAttentionBrush" Color="HotPink" /> |
30 | | - <SolidColorBrush x:Key="SystemFillColorCriticalBrush" Color="HotPink" /> |
31 | | - <SolidColorBrush x:Key="SystemFillColorNeutralBrush" Color="HotPink" /> |
32 | | - <SolidColorBrush x:Key="ContentDialogTopOverlay" Color="HotPink" /> |
33 | | - <SolidColorBrush x:Key="AccentButtonBackground" Color="HotPink" /> |
34 | | - <SolidColorBrush x:Key="AccentButtonForeground" Color="HotPink" /> |
35 | | - <SolidColorBrush x:Key="CardBackgroundFillColorDefault" Color="HotPink" /> |
36 | | - <SolidColorBrush x:Key="ContentDialogBackground" Color="HotPink" /> |
37 | | - <SolidColorBrush x:Key="ContentDialogSmokeFill" Color="HotPink" /> |
38 | | - <SolidColorBrush x:Key="ContentDialogForeground" Color="HotPink" /> |
| 15 | + <ResourceDictionary.ThemeDictionaries> |
| 16 | + <ResourceDictionary x:Key="Light"> |
| 17 | + <!-- <AcrylicBrush x:Key="CalibrationPaneBackgroundAcrylicBrush" --> |
| 18 | + <!-- TintOpacity="0.1" TintLuminosityOpacity="0.1" --> |
| 19 | + <!-- TintColor="#FF000000" FallbackColor="#20000000" /> --> |
| 20 | + |
| 21 | + <SolidColorBrush x:Key="NoThemeColorSolidColorBrush" Color="White" /> |
| 22 | + <SolidColorBrush x:Key="NoThemeColorSolidColorBrushOpposite" Color="Black" /> |
| 23 | + <Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness> |
| 24 | + </ResourceDictionary> |
| 25 | + <ResourceDictionary x:Key="Dark"> |
| 26 | + <!-- <AcrylicBrush x:Key="CalibrationPaneBackgroundAcrylicBrush" --> |
| 27 | + <!-- TintOpacity="0.1" TintLuminosityOpacity="0.2" --> |
| 28 | + <!-- TintColor="#FF000000" FallbackColor="#33000000" /> --> |
| 29 | + |
| 30 | + <SolidColorBrush x:Key="NoThemeColorSolidColorBrush" Color="Black" /> |
| 31 | + <SolidColorBrush x:Key="NoThemeColorSolidColorBrushOpposite" Color="White" /> |
| 32 | + <Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness> |
| 33 | + </ResourceDictionary> |
| 34 | + </ResourceDictionary.ThemeDictionaries> |
39 | 35 |
|
40 | 36 | <Color x:Key="SystemAccentColor">HotPink</Color> |
41 | 37 | <GridLength x:Key="ContentDialogButtonSpacing">Auto</GridLength> |
|
45 | 41 |
|
46 | 42 | <fluent:SymbolIconSource Symbol="Home" x:Key="HomeIcon" /> |
47 | 43 | <fluent:SymbolIconSource Symbol="HomeHeart" x:Key="HomeIconFilled" /> |
| 44 | + <fluent:SymbolIconSource Symbol="Settings" x:Key="SettingsIcon" /> |
| 45 | + <fluent:SymbolIconSource Symbol="DocumentSettings" x:Key="SettingsIconFilled" /> |
| 46 | + <fluent:SymbolIconSource Symbol="UsbPlug" x:Key="DevicesIcon" /> |
| 47 | + <fluent:SymbolIconSource Symbol="PlugConnected" x:Key="DevicesIconFilled" /> |
| 48 | + <fluent:SymbolIconSource Symbol="Info" x:Key="InfoIcon" /> |
| 49 | + <fluent:SymbolIconSource Symbol="InfoSparkle" x:Key="InfoIconFilled" /> |
| 50 | + <fluent:SymbolIconSource Symbol="PuzzlePiece" x:Key="PluginsIcon" /> |
| 51 | + <fluent:SymbolIconSource Symbol="PuzzleCube" x:Key="PluginsIconFilled" /> |
48 | 52 |
|
49 | 53 | <!-- --> |
50 | 54 | <!-- ~1~ Other app resources here @1@ --> |
|
90 | 94 | <!-- <Setter Property="CornerRadius" Value="4,4,0,0" /> --> |
91 | 95 | <!-- <Setter Property="Padding" Value="12" /> --> |
92 | 96 | <!-- <Setter Property="BorderThickness" Value="1" /> --> |
93 | | - <!-- <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" /> --> |
| 97 | + <!-- <Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" /> --> |
94 | 98 | <!-- <Setter Property="Background" Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> --> |
95 | 99 | <!-- </Style> --> |
96 | 100 | <!-- --> |
97 | 101 | <!-- <Style x:Key="CardMiddleStyle"> --> |
98 | 102 | <!-- <Setter Property="CornerRadius" Value="0,0,0,0" /> --> |
99 | 103 | <!-- <Setter Property="Padding" Value="12" /> --> |
100 | 104 | <!-- <Setter Property="BorderThickness" Value="1,0,1,1" /> --> |
101 | | - <!-- <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" /> --> |
| 105 | + <!-- <Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" /> --> |
102 | 106 | <!-- <Setter Property="Background" Value="{StaticResource CardBackgroundFillColorSecondaryBrush}" /> --> |
103 | 107 | <!-- </Style> --> |
104 | 108 | <!-- --> |
105 | 109 | <!-- <Style x:Key="CardBottomStyle"> --> |
106 | 110 | <!-- <Setter Property="CornerRadius" Value="0,0,4,4" /> --> |
107 | 111 | <!-- <Setter Property="Padding" Value="12" /> --> |
108 | 112 | <!-- <Setter Property="BorderThickness" Value="1,0,1,1" /> --> |
109 | | - <!-- <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" /> --> |
| 113 | + <!-- <Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" /> --> |
110 | 114 | <!-- <Setter Property="Background" Value="{StaticResource CardBackgroundFillColorSecondaryBrush}" /> --> |
111 | 115 | <!-- </Style> --> |
112 | 116 | <!-- --> |
113 | 117 | <!-- <Style x:Key="CardSingleStyle"> --> |
114 | 118 | <!-- <Setter Property="CornerRadius" Value="4" /> --> |
115 | 119 | <!-- <Setter Property="Padding" Value="12" /> --> |
116 | 120 | <!-- <Setter Property="BorderThickness" Value="1" /> --> |
117 | | - <!-- <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" /> --> |
| 121 | + <!-- <Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" /> --> |
118 | 122 | <!-- <Setter Property="Background" Value="{StaticResource CardBackgroundFillColorSecondaryBrush}" /> --> |
119 | 123 | <!-- </Style> --> |
120 | 124 | <!-- --> |
121 | 125 | <!-- <Style x:Key="GridCardSingleStyle"> --> |
122 | 126 | <!-- <Setter Property="CornerRadius" Value="4" /> --> |
123 | 127 | <!-- <Setter Property="Padding" Value="12" /> --> |
124 | 128 | <!-- <Setter Property="BorderThickness" Value="1" /> --> |
125 | | - <!-- <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" /> --> |
| 129 | + <!-- <Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" /> --> |
126 | 130 | <!-- <Setter Property="Background" Value="{StaticResource CardBackgroundFillColorSecondaryBrush}" /> --> |
127 | 131 | <!-- </Style> --> |
128 | 132 | <!-- --> |
129 | 133 | <!-- <Style x:Key="GridCardBottomStyle"> --> |
130 | 134 | <!-- <Setter Property="CornerRadius" Value="0,0,4,4" /> --> |
131 | 135 | <!-- <Setter Property="Padding" Value="12" /> --> |
132 | 136 | <!-- <Setter Property="BorderThickness" Value="1,0,1,1" /> --> |
133 | | - <!-- <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" /> --> |
| 137 | + <!-- <Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}" /> --> |
134 | 138 | <!-- <Setter Property="Background" Value="{StaticResource CardBackgroundFillColorSecondaryBrush}" /> --> |
135 | 139 | <!-- </Style> --> |
136 | 140 | <!-- --> |
137 | | - <!-- ~1~From WinUI-Gallery@1@ --> |
138 | | - <!-- <ResourceDictionary.ThemeDictionaries> --> |
139 | | - <!-- <ResourceDictionary x:Key="Light"> --> |
140 | | - <!-- ~1~ <AcrylicBrush x:Key="CalibrationPaneBackgroundAcrylicBrush" @1@ --> |
141 | | - <!-- ~1~ TintOpacity="0.1" TintLuminosityOpacity="0.1" @1@ --> |
142 | | - <!-- ~1~ TintColor="#FF000000" FallbackColor="#20000000" /> @1@ --> |
143 | | - <!-- --> |
144 | | - <!-- <SolidColorBrush x:Key="NoThemeColorSolidColorBrush" Color="White" /> --> |
145 | | - <!-- <SolidColorBrush x:Key="NoThemeColorSolidColorBrushOpposite" Color="Black" /> --> |
146 | | - <!-- --> |
147 | | - <!-- <StaticResource x:Key="ControlDisplayBackgroundBrush" --> |
148 | | - <!-- ResourceKey="SolidBackgroundFillColorBaseBrush" /> --> |
149 | | - <!-- <StaticResource x:Key="ControlDisplayTextBrush" ResourceKey="SystemFillColorNeutralBrush" /> --> |
150 | | - <!-- <Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness> --> |
151 | | - <!-- </ResourceDictionary> --> |
152 | | - <!-- <ResourceDictionary x:Key="Dark"> --> |
153 | | - <!-- ~1~ <AcrylicBrush x:Key="CalibrationPaneBackgroundAcrylicBrush" @1@ --> |
154 | | - <!-- ~1~ TintOpacity="0.1" TintLuminosityOpacity="0.2" @1@ --> |
155 | | - <!-- ~1~ TintColor="#FF000000" FallbackColor="#33000000" /> @1@ --> |
156 | | - <!-- --> |
157 | | - <!-- <SolidColorBrush x:Key="NoThemeColorSolidColorBrush" Color="Black" /> --> |
158 | | - <!-- <SolidColorBrush x:Key="NoThemeColorSolidColorBrushOpposite" Color="White" /> --> |
159 | | - <!-- --> |
160 | | - <!-- <StaticResource x:Key="ControlDisplayBackgroundBrush" --> |
161 | | - <!-- ResourceKey="SolidBackgroundFillColorBaseBrush" /> --> |
162 | | - <!-- <StaticResource x:Key="ControlDisplayTextBrush" ResourceKey="SystemFillColorNeutralBrush" /> --> |
163 | | - <!-- <Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness> --> |
164 | | - <!-- </ResourceDictionary> --> |
165 | | - <!-- <ResourceDictionary x:Key="HighContrast"> --> |
166 | | - <!-- ~1~ <AcrylicBrush x:Key="CalibrationPaneBackgroundAcrylicBrush" @1@ --> |
167 | | - <!-- ~1~ TintOpacity="0.1" TintLuminosityOpacity="0.2" @1@ --> |
168 | | - <!-- ~1~ TintColor="#FF000000" FallbackColor="#55000000" /> @1@ --> |
169 | | - <!-- --> |
170 | | - <!-- <SolidColorBrush x:Key="NoThemeColorSolidColorBrush" Color="Black" /> --> |
171 | | - <!-- <SolidColorBrush x:Key="NoThemeColorSolidColorBrushOpposite" Color="White" /> --> |
172 | | - <!-- --> |
173 | | - <!-- <SolidColorBrush x:Key="ControlDisplayBackgroundBrush" --> |
174 | | - <!-- Color="{StaticResource SystemColorWindowColor}" /> --> |
175 | | - <!-- <SolidColorBrush x:Key="ControlDisplayTextBrush" Color="{StaticResource SystemColorWindowTextColor}" /> --> |
176 | | - <!-- <Thickness x:Key="ControlExampleDisplayBorderThickness">1</Thickness> --> |
177 | | - <!-- </ResourceDictionary> --> |
178 | | - <!-- </ResourceDictionary.ThemeDictionaries> --> |
179 | 141 | </ResourceDictionary> |
180 | 142 | </Application.Resources> |
181 | 143 |
|
182 | 144 | <Application.Styles> |
183 | 145 | <sty:FluentAvaloniaTheme PreferSystemTheme="True" PreferUserAccentColor="True" /> |
| 146 | + <Style Selector=":is(TopLevel)"> |
| 147 | + <Setter Property="FontFamily" Value="Segoe UI"/> |
| 148 | + </Style> |
184 | 149 | </Application.Styles> |
185 | 150 | </Application> |
0 commit comments