|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | 3 | x:Class="UniGetUI.Avalonia.App" |
4 | 4 | xmlns:avaloniaApplication1="clr-namespace:UniGetUI.Avalonia" |
5 | | - xmlns:controls="using:UniGetUI.Avalonia.Views.Controls" |
6 | 5 | RequestedThemeVariant="Default"> |
7 | 6 |
|
8 | 7 | <Application.DataTemplates> |
9 | 8 | <avaloniaApplication1:ViewLocator/> |
10 | 9 | </Application.DataTemplates> |
11 | 10 |
|
12 | | - <Application.Resources> |
13 | | - <ResourceDictionary> |
14 | | - <ResourceDictionary.ThemeDictionaries> |
15 | | - <ResourceDictionary x:Key="Dark"> |
16 | | - <!-- Settings cards --> |
17 | | - <SolidColorBrush x:Key="SettingsCardBackground" Color="#262B3C"/> |
18 | | - <SolidColorBrush x:Key="SettingsCardBorderBrush" Color="#3a3a3a"/> |
19 | | - <SolidColorBrush x:Key="SettingsCardHoverBackground" Color="#2e3448"/> |
20 | | - <!-- Window structure --> |
21 | | - <SolidColorBrush x:Key="AppWindowBackground" Color="#1e2025"/> |
22 | | - <SolidColorBrush x:Key="AppTitleBarBackground" Color="#313131"/> |
23 | | - <SolidColorBrush x:Key="AppSplitterBackground" Color="#14161a"/> |
24 | | - <SolidColorBrush x:Key="AppOperationsPanelBackground" Color="#16181c"/> |
25 | | - <SolidColorBrush x:Key="AppBorderBrush" Color="#323439"/> |
26 | | - <SolidColorBrush x:Key="AppBadgeBackground" Color="#3c3e44"/> |
27 | | - <!-- Dialogs --> |
28 | | - <SolidColorBrush x:Key="AppDialogBackground" Color="#1e2025"/> |
29 | | - <SolidColorBrush x:Key="AppDialogPanelBackground" Color="#2a2d34"/> |
30 | | - <SolidColorBrush x:Key="AppDialogSubtleBackground" Color="#3a3d44"/> |
31 | | - <SolidColorBrush x:Key="AppDialogDarkBackground" Color="#12141a"/> |
32 | | - <!-- Warning banner --> |
33 | | - <SolidColorBrush x:Key="WarningBannerBackground" Color="#3d2800"/> |
34 | | - <SolidColorBrush x:Key="WarningBannerBorderBrush" Color="#7a5200"/> |
35 | | - <SolidColorBrush x:Key="WarningBannerIconBackground" Color="#f0a500"/> |
36 | | - <SolidColorBrush x:Key="WarningBannerIconForeground" Color="#1a1000"/> |
37 | | - <SolidColorBrush x:Key="WarningBannerSubtext" Color="#ffe082"/> |
38 | | - <!-- Setting warning subtext (WarningText on cards) --> |
39 | | - <SolidColorBrush x:Key="SettingWarningTextForeground" Color="#ffc107"/> |
40 | | - </ResourceDictionary> |
41 | | - <ResourceDictionary x:Key="Light"> |
42 | | - <!-- Settings cards --> |
43 | | - <SolidColorBrush x:Key="SettingsCardBackground" Color="#f3f3f3"/> |
44 | | - <SolidColorBrush x:Key="SettingsCardBorderBrush" Color="#d0d0d0"/> |
45 | | - <SolidColorBrush x:Key="SettingsCardHoverBackground" Color="#e8e8e8"/> |
46 | | - <!-- Window structure --> |
47 | | - <SolidColorBrush x:Key="AppWindowBackground" Color="#f0f0f0"/> |
48 | | - <SolidColorBrush x:Key="AppTitleBarBackground" Color="#e0e0e0"/> |
49 | | - <SolidColorBrush x:Key="AppSplitterBackground" Color="#d8d8d8"/> |
50 | | - <SolidColorBrush x:Key="AppOperationsPanelBackground" Color="#f8f8f8"/> |
51 | | - <SolidColorBrush x:Key="AppBorderBrush" Color="#cccccc"/> |
52 | | - <SolidColorBrush x:Key="AppBadgeBackground" Color="#e0e0e0"/> |
53 | | - <!-- Dialogs --> |
54 | | - <SolidColorBrush x:Key="AppDialogBackground" Color="#ffffff"/> |
55 | | - <SolidColorBrush x:Key="AppDialogPanelBackground" Color="#f5f5f5"/> |
56 | | - <SolidColorBrush x:Key="AppDialogSubtleBackground" Color="#ebebeb"/> |
57 | | - <SolidColorBrush x:Key="AppDialogDarkBackground" Color="#e8e8e8"/> |
58 | | - <!-- Warning banner --> |
59 | | - <SolidColorBrush x:Key="WarningBannerBackground" Color="#fff8e1"/> |
60 | | - <SolidColorBrush x:Key="WarningBannerBorderBrush" Color="#d4a700"/> |
61 | | - <SolidColorBrush x:Key="WarningBannerIconBackground" Color="#f0a500"/> |
62 | | - <SolidColorBrush x:Key="WarningBannerIconForeground" Color="#1a1000"/> |
63 | | - <SolidColorBrush x:Key="WarningBannerSubtext" Color="#7a4f00"/> |
64 | | - <!-- Setting warning subtext (WarningText on cards) --> |
65 | | - <SolidColorBrush x:Key="SettingWarningTextForeground" Color="#a05c00"/> |
66 | | - </ResourceDictionary> |
67 | | - </ResourceDictionary.ThemeDictionaries> |
68 | | - </ResourceDictionary> |
69 | | - </Application.Resources> |
70 | | - |
71 | 11 | <Application.Styles> |
72 | 12 | <FluentTheme /> |
73 | | - <StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/> |
74 | | - |
75 | | - <!-- SettingsCard appearance --> |
76 | | - <Style Selector="Border.settings-card"> |
77 | | - <Setter Property="Background" Value="{DynamicResource SettingsCardBackground}"/> |
78 | | - <Setter Property="BorderBrush" Value="{DynamicResource SettingsCardBorderBrush}"/> |
79 | | - <Setter Property="Margin" Value="40,0"/> |
80 | | - </Style> |
81 | | - <Style Selector="Border.settings-card-clickable:pointerover"> |
82 | | - <Setter Property="Background" Value="{DynamicResource SettingsCardHoverBackground}"/> |
83 | | - </Style> |
84 | | - |
85 | | - <!-- Setting warning subtext (amber, both themes) --> |
86 | | - <Style Selector="TextBlock.setting-warning-text"> |
87 | | - <Setter Property="Foreground" Value="{DynamicResource SettingWarningTextForeground}"/> |
88 | | - </Style> |
89 | | - |
90 | | - <!-- Warning banner (InfoBar-style amber/golden) --> |
91 | | - <Style Selector="Border.warning-banner"> |
92 | | - <Setter Property="Background" Value="{DynamicResource WarningBannerBackground}"/> |
93 | | - <Setter Property="BorderBrush" Value="{DynamicResource WarningBannerBorderBrush}"/> |
94 | | - <Setter Property="BorderThickness" Value="1"/> |
95 | | - <Setter Property="Margin" Value="40,4,40,0"/> |
96 | | - </Style> |
97 | | - |
98 | | - <!-- SvgIcon: inherit the Fluent foreground so icons match text colour in both themes --> |
99 | | - <Style Selector="controls|SvgIcon"> |
100 | | - <Setter Property="Foreground" Value="{DynamicResource SystemControlForegroundBaseHighBrush}"/> |
101 | | - </Style> |
| 13 | + <StyleInclude Source="avares://UniGetUI.Avalonia/Assets/Styles/Styles.Common.axaml"/> |
102 | 14 | </Application.Styles> |
103 | 15 | </Application> |
0 commit comments