|
1 | 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
3 | 3 |
|
4 | | - <!-- Color palette: Catppuccin Mocha --> |
5 | | - <Color x:Key="BaseColor">#1E1E2E</Color> |
6 | | - <Color x:Key="SurfaceColor">#313244</Color> |
7 | | - <Color x:Key="OverlayColor">#45475A</Color> |
8 | | - <Color x:Key="TextColor">#CDD6F4</Color> |
9 | | - <Color x:Key="SubtextColor">#9399B2</Color> |
10 | | - <Color x:Key="MutedColor">#6C7086</Color> |
11 | | - <Color x:Key="GreenColor">#A6E3A1</Color> |
12 | | - <Color x:Key="BlueColor">#89B4FA</Color> |
13 | | - <Color x:Key="RedColor">#F38BA8</Color> |
14 | | - |
15 | | - <SolidColorBrush x:Key="BaseBrush" Color="{StaticResource BaseColor}"/> |
16 | | - <SolidColorBrush x:Key="SurfaceBrush" Color="{StaticResource SurfaceColor}"/> |
17 | | - <SolidColorBrush x:Key="OverlayBrush" Color="{StaticResource OverlayColor}"/> |
18 | | - <SolidColorBrush x:Key="TextBrush" Color="{StaticResource TextColor}"/> |
19 | | - <SolidColorBrush x:Key="SubtextBrush" Color="{StaticResource SubtextColor}"/> |
20 | | - <SolidColorBrush x:Key="MutedBrush" Color="{StaticResource MutedColor}"/> |
21 | | - <SolidColorBrush x:Key="GreenBrush" Color="{StaticResource GreenColor}"/> |
22 | | - <SolidColorBrush x:Key="BlueBrush" Color="{StaticResource BlueColor}"/> |
23 | | - <SolidColorBrush x:Key="RedBrush" Color="{StaticResource RedColor}"/> |
24 | | - |
25 | 4 | <!-- Flat Button --> |
26 | 5 | <Style TargetType="Button"> |
27 | 6 | <Setter Property="Cursor" Value="Hand"/> |
|
56 | 35 | <Style TargetType="TextBox"> |
57 | 36 | <Setter Property="FontFamily" Value="Segoe UI"/> |
58 | 37 | <Setter Property="FontSize" Value="13"/> |
59 | | - <Setter Property="CaretBrush" Value="{StaticResource BlueBrush}"/> |
| 38 | + <Setter Property="CaretBrush" Value="{DynamicResource BlueBrush}"/> |
60 | 39 | <Setter Property="Template"> |
61 | 40 | <Setter.Value> |
62 | 41 | <ControlTemplate TargetType="TextBox"> |
|
68 | 47 | </Border> |
69 | 48 | <ControlTemplate.Triggers> |
70 | 49 | <Trigger Property="IsFocused" Value="True"> |
71 | | - <Setter Property="BorderBrush" Value="{StaticResource BlueBrush}"/> |
| 50 | + <Setter Property="BorderBrush" Value="{DynamicResource BlueBrush}"/> |
72 | 51 | </Trigger> |
73 | 52 | </ControlTemplate.Triggers> |
74 | 53 | </ControlTemplate> |
|
78 | 57 |
|
79 | 58 | <!-- ComboBox --> |
80 | 59 | <Style TargetType="ComboBox"> |
81 | | - <Setter Property="Background" Value="#313244"/> |
82 | | - <Setter Property="Foreground" Value="#CDD6F4"/> |
83 | | - <Setter Property="BorderBrush" Value="#45475A"/> |
| 60 | + <Setter Property="Background" Value="{DynamicResource SurfaceBrush}"/> |
| 61 | + <Setter Property="Foreground" Value="{DynamicResource TextBrush}"/> |
| 62 | + <Setter Property="BorderBrush" Value="{DynamicResource OverlayBrush}"/> |
84 | 63 | <Setter Property="BorderThickness" Value="1"/> |
85 | 64 | <Setter Property="FontFamily" Value="Segoe UI"/> |
86 | 65 | <Setter Property="FontSize" Value="13"/> |
|
108 | 87 | IsHitTestVisible="False"/> |
109 | 88 | <Path Grid.Column="1" |
110 | 89 | Data="M 0 0 L 5 5 L 10 0" |
111 | | - Stroke="#9399B2" |
| 90 | + Stroke="{DynamicResource SubtextBrush}" |
112 | 91 | StrokeThickness="1.5" |
113 | 92 | HorizontalAlignment="Center" |
114 | 93 | VerticalAlignment="Center" |
|
130 | 109 | Focusable="False" |
131 | 110 | PopupAnimation="Fade" |
132 | 111 | Placement="Bottom"> |
133 | | - <Border Background="#313244" |
134 | | - BorderBrush="#45475A" |
| 112 | + <Border Background="{DynamicResource SurfaceBrush}" |
| 113 | + BorderBrush="{DynamicResource OverlayBrush}" |
135 | 114 | BorderThickness="1" |
136 | 115 | CornerRadius="6" |
137 | 116 | MinWidth="{TemplateBinding ActualWidth}" |
|
149 | 128 | </Grid> |
150 | 129 | <ControlTemplate.Triggers> |
151 | 130 | <Trigger Property="IsMouseOver" Value="True"> |
152 | | - <Setter TargetName="Border" Property="BorderBrush" Value="#89B4FA"/> |
| 131 | + <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource BlueBrush}"/> |
153 | 132 | </Trigger> |
154 | 133 | <Trigger Property="IsDropDownOpen" Value="True"> |
155 | | - <Setter TargetName="Border" Property="BorderBrush" Value="#89B4FA"/> |
| 134 | + <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource BlueBrush}"/> |
156 | 135 | </Trigger> |
157 | 136 | </ControlTemplate.Triggers> |
158 | 137 | </ControlTemplate> |
|
161 | 140 | <Setter Property="ItemContainerStyle"> |
162 | 141 | <Setter.Value> |
163 | 142 | <Style TargetType="ComboBoxItem"> |
164 | | - <Setter Property="Foreground" Value="#CDD6F4"/> |
| 143 | + <Setter Property="Foreground" Value="{DynamicResource TextBrush}"/> |
165 | 144 | <Setter Property="Background" Value="Transparent"/> |
166 | 145 | <Setter Property="Padding" Value="10,7"/> |
167 | 146 | <Setter Property="FontFamily" Value="Segoe UI"/> |
|
177 | 156 | </Border> |
178 | 157 | <ControlTemplate.Triggers> |
179 | 158 | <Trigger Property="IsMouseOver" Value="True"> |
180 | | - <Setter TargetName="Bg" Property="Background" Value="#45475A"/> |
| 159 | + <Setter TargetName="Bg" Property="Background" Value="{DynamicResource OverlayBrush}"/> |
181 | 160 | </Trigger> |
182 | 161 | <Trigger Property="IsSelected" Value="True"> |
183 | | - <Setter TargetName="Bg" Property="Background" Value="#45475A"/> |
184 | | - <Setter Property="Foreground" Value="#89B4FA"/> |
| 162 | + <Setter TargetName="Bg" Property="Background" Value="{DynamicResource OverlayBrush}"/> |
| 163 | + <Setter Property="Foreground" Value="{DynamicResource BlueBrush}"/> |
185 | 164 | </Trigger> |
186 | 165 | </ControlTemplate.Triggers> |
187 | 166 | </ControlTemplate> |
|
0 commit comments