|
13 | 13 | <SolidColorBrush x:Key="AccentFillColorTertiaryBrush" Color="{DynamicResource SystemAccentColorDark2}"/> |
14 | 14 | <SolidColorBrush x:Key="AccentFillColorDisabledBrush" Color="#37000000"/> |
15 | 15 | <SolidColorBrush x:Key="AccentFillColorSelectedTextBackgroundBrush" Color="{DynamicResource SystemAccentColor}"/> |
| 16 | + <!-- Subtle fills (WinUI NavigationViewItem hover/selected backgrounds) --> |
| 17 | + <SolidColorBrush x:Key="SubtleFillColorSecondaryBrush" Color="#09000000"/> |
| 18 | + <SolidColorBrush x:Key="SubtleFillColorTertiaryBrush" Color="#06000000"/> |
16 | 19 | <!-- Accent text (darker accents read better on light bg) --> |
17 | 20 | <SolidColorBrush x:Key="AccentTextFillColorPrimaryBrush" Color="{DynamicResource SystemAccentColorDark2}"/> |
18 | 21 | <SolidColorBrush x:Key="AccentTextFillColorSecondaryBrush" Color="{DynamicResource SystemAccentColorDark3}"/> |
|
35 | 38 | <SolidColorBrush x:Key="SettingsCardBackground" Color="#FBFBFB"/> |
36 | 39 | <SolidColorBrush x:Key="SettingsCardBorderBrush" Color="#ECECEC"/> |
37 | 40 | <SolidColorBrush x:Key="SettingsCardHoverBackground" Color="#F6F6F6"/> |
| 41 | + <!-- Package list container; near-transparent over Mica (see Styles.WindowsMica) --> |
| 42 | + <SolidColorBrush x:Key="PackageListBackground" Color="#FBFBFB"/> |
| 43 | + <!-- Column header: WinUI default button (ControlFillColorDefault fill + ControlStrokeColorDefault border) --> |
| 44 | + <SolidColorBrush x:Key="PackageListHeaderBackground" Color="#B3FFFFFF"/> |
| 45 | + <SolidColorBrush x:Key="PackageListHeaderBorderBrush" Color="#0F000000"/> |
| 46 | + <!-- Subtle header hover/press (WinUI-style), over the rest fill --> |
| 47 | + <SolidColorBrush x:Key="DataGridColumnHeaderHoveredBackgroundBrush" Color="#05000000"/> |
| 48 | + <SolidColorBrush x:Key="DataGridColumnHeaderPressedBackgroundBrush" Color="#14000000"/> |
38 | 49 | <!-- Window structure --> |
39 | 50 | <SolidColorBrush x:Key="AppWindowBackground" Color="#F3F3F3"/> |
40 | 51 | <SolidColorBrush x:Key="AppTitleBarBackground" Color="#F3F3F3"/> |
|
78 | 89 | <SolidColorBrush x:Key="AccentFillColorTertiaryBrush" Color="{DynamicResource SystemAccentColor}"/> |
79 | 90 | <SolidColorBrush x:Key="AccentFillColorDisabledBrush" Color="#28FFFFFF"/> |
80 | 91 | <SolidColorBrush x:Key="AccentFillColorSelectedTextBackgroundBrush" Color="{DynamicResource SystemAccentColor}"/> |
| 92 | + <!-- Subtle fills (WinUI NavigationViewItem hover/selected backgrounds) --> |
| 93 | + <SolidColorBrush x:Key="SubtleFillColorSecondaryBrush" Color="#0FFFFFFF"/> |
| 94 | + <SolidColorBrush x:Key="SubtleFillColorTertiaryBrush" Color="#0AFFFFFF"/> |
81 | 95 | <!-- Accent text --> |
82 | 96 | <SolidColorBrush x:Key="AccentTextFillColorPrimaryBrush" Color="{DynamicResource SystemAccentColorLight3}"/> |
83 | 97 | <SolidColorBrush x:Key="AccentTextFillColorSecondaryBrush" Color="{DynamicResource SystemAccentColorLight3}"/> |
|
99 | 113 | <SolidColorBrush x:Key="SettingsCardBackground" Color="#2D2D2D"/> |
100 | 114 | <SolidColorBrush x:Key="SettingsCardBorderBrush" Color="#393939"/> |
101 | 115 | <SolidColorBrush x:Key="SettingsCardHoverBackground" Color="#323232"/> |
| 116 | + <!-- Package list container; near-transparent over Mica (see Styles.WindowsMica) --> |
| 117 | + <SolidColorBrush x:Key="PackageListBackground" Color="#2D2D2D"/> |
| 118 | + <!-- Column header: WinUI default button (ControlFillColorDefault fill + ControlStrokeColorDefault border) --> |
| 119 | + <SolidColorBrush x:Key="PackageListHeaderBackground" Color="#0FFFFFFF"/> |
| 120 | + <SolidColorBrush x:Key="PackageListHeaderBorderBrush" Color="#12FFFFFF"/> |
| 121 | + <!-- Subtle header hover/press (WinUI-style), over the rest fill --> |
| 122 | + <SolidColorBrush x:Key="DataGridColumnHeaderHoveredBackgroundBrush" Color="#0AFFFFFF"/> |
| 123 | + <SolidColorBrush x:Key="DataGridColumnHeaderPressedBackgroundBrush" Color="#1FFFFFFF"/> |
102 | 124 | <!-- Window structure --> |
103 | 125 | <SolidColorBrush x:Key="AppWindowBackground" Color="#202020"/> |
104 | 126 | <SolidColorBrush x:Key="AppTitleBarBackground" Color="#202020"/> |
|
147 | 169 | <Setter Property="BorderThickness" Value="2"/> |
148 | 170 | <Setter Property="BorderBrush" Value="Transparent"/> |
149 | 171 | </Style> |
| 172 | + <!-- Column headers default to Avalonia's 12px bare-TextBlock size; WinUI renders them at 14px. --> |
| 173 | + <Style Selector="DataGridColumnHeader"> |
| 174 | + <Setter Property="FontSize" Value="14"/> |
| 175 | + </Style> |
150 | 176 | <Style Selector="DataGridRow:selected"> |
151 | 177 | <Setter Property="BorderBrush" Value="{DynamicResource SystemAccentColor}"/> |
152 | 178 | </Style> |
|
157 | 183 | <Setter Property="Fill" Value="{DynamicResource SettingsCardHoverBackground}"/> |
158 | 184 | </Style> |
159 | 185 |
|
| 186 | + <!-- Sidebar navigation items: WinUI NavigationViewItem-style selection. |
| 187 | + Fluent's default fills the selected item with the accent colour; instead use a subtle |
| 188 | + neutral fill plus a vertical accent pill on the left edge. The content presenter is named |
| 189 | + ContentHost (not PART_ContentPresenter) so the base theme's accent-fill setters don't apply. --> |
| 190 | + <Style Selector="ListBoxItem.nav-item"> |
| 191 | + <Setter Property="Template"> |
| 192 | + <ControlTemplate> |
| 193 | + <Panel> |
| 194 | + <ContentPresenter Name="ContentHost" |
| 195 | + Background="{TemplateBinding Background}" |
| 196 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 197 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 198 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 199 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 200 | + Content="{TemplateBinding Content}" |
| 201 | + Padding="{TemplateBinding Padding}" |
| 202 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
| 203 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/> |
| 204 | + <Border Name="SelectionPill" |
| 205 | + Width="3" Height="16" CornerRadius="1.5" |
| 206 | + Background="{DynamicResource AccentFillColorDefaultBrush}" |
| 207 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 208 | + Opacity="0"> |
| 209 | + <Border.Transitions> |
| 210 | + <Transitions><DoubleTransition Property="Opacity" Duration="0:0:0.1"/></Transitions> |
| 211 | + </Border.Transitions> |
| 212 | + </Border> |
| 213 | + </Panel> |
| 214 | + </ControlTemplate> |
| 215 | + </Setter> |
| 216 | + </Style> |
| 217 | + <Style Selector="ListBoxItem.nav-item:pointerover /template/ ContentPresenter#ContentHost"> |
| 218 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorSecondaryBrush}"/> |
| 219 | + </Style> |
| 220 | + <Style Selector="ListBoxItem.nav-item:pressed /template/ ContentPresenter#ContentHost"> |
| 221 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorTertiaryBrush}"/> |
| 222 | + </Style> |
| 223 | + <Style Selector="ListBoxItem.nav-item:selected /template/ ContentPresenter#ContentHost"> |
| 224 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorSecondaryBrush}"/> |
| 225 | + </Style> |
| 226 | + <Style Selector="ListBoxItem.nav-item:selected:pointerover /template/ ContentPresenter#ContentHost"> |
| 227 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorTertiaryBrush}"/> |
| 228 | + </Style> |
| 229 | + <Style Selector="ListBoxItem.nav-item:selected /template/ Border#SelectionPill"> |
| 230 | + <Setter Property="Opacity" Value="1"/> |
| 231 | + </Style> |
| 232 | + |
| 233 | + <!-- View-mode segmented selector (List / Grid / Icons): WinUI Segmented-style selection — subtle |
| 234 | + fill plus an accent underline under the selected segment, not Fluent's full-accent fill. --> |
| 235 | + <Style Selector="ListBoxItem.segment-item"> |
| 236 | + <Setter Property="Template"> |
| 237 | + <ControlTemplate> |
| 238 | + <Panel> |
| 239 | + <ContentPresenter Name="ContentHost" |
| 240 | + Background="{TemplateBinding Background}" |
| 241 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 242 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 243 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 244 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 245 | + Content="{TemplateBinding Content}" |
| 246 | + Padding="{TemplateBinding Padding}" |
| 247 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
| 248 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/> |
| 249 | + <Border Name="SelectionPill" |
| 250 | + Height="2" CornerRadius="1" |
| 251 | + Background="{DynamicResource AccentFillColorDefaultBrush}" |
| 252 | + HorizontalAlignment="Stretch" VerticalAlignment="Bottom" |
| 253 | + Margin="5,0,5,2" |
| 254 | + Opacity="0"> |
| 255 | + <Border.Transitions> |
| 256 | + <Transitions><DoubleTransition Property="Opacity" Duration="0:0:0.1"/></Transitions> |
| 257 | + </Border.Transitions> |
| 258 | + </Border> |
| 259 | + </Panel> |
| 260 | + </ControlTemplate> |
| 261 | + </Setter> |
| 262 | + </Style> |
| 263 | + <Style Selector="ListBoxItem.segment-item:pointerover /template/ ContentPresenter#ContentHost"> |
| 264 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorSecondaryBrush}"/> |
| 265 | + </Style> |
| 266 | + <Style Selector="ListBoxItem.segment-item:selected /template/ ContentPresenter#ContentHost"> |
| 267 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorSecondaryBrush}"/> |
| 268 | + </Style> |
| 269 | + <Style Selector="ListBoxItem.segment-item:selected:pointerover /template/ ContentPresenter#ContentHost"> |
| 270 | + <Setter Property="Background" Value="{DynamicResource SubtleFillColorTertiaryBrush}"/> |
| 271 | + </Style> |
| 272 | + <Style Selector="ListBoxItem.segment-item:selected /template/ Border#SelectionPill"> |
| 273 | + <Setter Property="Opacity" Value="1"/> |
| 274 | + </Style> |
| 275 | + |
160 | 276 | <!-- SettingsCard appearance --> |
161 | 277 | <Style Selector="Border.settings-card"> |
162 | 278 | <Setter Property="Background" Value="{DynamicResource SettingsCardBackground}"/> |
|
0 commit comments