|
422 | 422 | <!-- DataGrid -->
|
423 | 423 | <SolidColorBrush x:Key="DataGridRowSelectedBackgroundThemeBrush" Color="{StaticResource SystemAccentColorLight3}" />
|
424 | 424 | <SolidColorBrush x:Key="DataGridRowSelectedForegroundThemeBrush" Color="{StaticResource TextOnAccentFillColorPrimary}" />
|
| 425 | + <!-- DatePicker --> |
| 426 | + <SolidColorBrush x:Key="DatePickerForeground" Color="{StaticResource TextFillColorPrimary}" /> |
| 427 | + <SolidColorBrush x:Key="DatePickerBackground" Color="{StaticResource ControlFillColorDefault}" /> |
| 428 | + <SolidColorBrush x:Key="DatePickerTextBoxForeground" Color="{StaticResource TextFillColorPrimary}" /> |
| 429 | + <SolidColorBrush x:Key="DatePickerTextBoxCaretBrush" Color="{StaticResource TextFillColorPrimary}" /> |
| 430 | + <SolidColorBrush x:Key="DatePickerFocusedBorderBrush" Color="{StaticResource SystemAccentColorLight2}" /> |
| 431 | + <SolidColorBrush x:Key="DatePickerBackgroundFocused" Color="{StaticResource ControlFillColorInputActive}" /> |
| 432 | + <SolidColorBrush x:Key="DatePickerBackgroundPointerOver" Color="{StaticResource ControlFillColorSecondary}" /> |
425 | 433 | <!-- DynamicScrollBar -->
|
426 | 434 | <SolidColorBrush x:Key="ScrollBarButtonBackground" Color="{StaticResource SubtleFillColorTransparent}" />
|
427 | 435 | <SolidColorBrush x:Key="ScrollBarButtonArrowForeground" Color="{StaticResource ControlStrongFillColorDefault}" />
|
|
2048 | 2056 | <Setter Property="BorderBrush" Value="Transparent" />
|
2049 | 2057 | <Setter Property="Background" Value="Transparent" />
|
2050 | 2058 | <Setter Property="AutomationProperties.Name" Value="{Binding Path=(AutomationProperties.Name), Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DatePicker}}}" />
|
2051 |
| - <Setter Property="Foreground"> |
2052 |
| - <Setter.Value> |
2053 |
| - <SolidColorBrush Color="{DynamicResource TextFillColorPrimary}" /> |
2054 |
| - </Setter.Value> |
2055 |
| - </Setter> |
2056 |
| - <Setter Property="CaretBrush"> |
2057 |
| - <Setter.Value> |
2058 |
| - <SolidColorBrush Color="{DynamicResource TextFillColorPrimary}" /> |
2059 |
| - </Setter.Value> |
2060 |
| - </Setter> |
| 2059 | + <Setter Property="Foreground" Value="{DynamicResource DatePickerTextBoxForeground}" /> |
| 2060 | + <Setter Property="CaretBrush" Value="{DynamicResource DatePickerTextBoxCaretBrush}" /> |
2061 | 2061 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
2062 | 2062 | <Setter Property="OverridesDefaultStyle" Value="True" />
|
2063 | 2063 | <Setter Property="Template">
|
|
2093 | 2093 | <Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
|
2094 | 2094 | <Setter Property="ContextMenu" Value="{DynamicResource DefaultControlContextMenu}" />
|
2095 | 2095 | <Setter Property="CalendarStyle" Value="{DynamicResource DefaultCalendarStyle}" />
|
2096 |
| - <Setter Property="Foreground"> |
2097 |
| - <Setter.Value> |
2098 |
| - <SolidColorBrush Color="{DynamicResource TextFillColorPrimary}" /> |
2099 |
| - </Setter.Value> |
2100 |
| - </Setter> |
2101 |
| - <Setter Property="Background"> |
2102 |
| - <Setter.Value> |
2103 |
| - <SolidColorBrush Color="{DynamicResource ControlFillColorDefault}" /> |
2104 |
| - </Setter.Value> |
2105 |
| - </Setter> |
| 2096 | + <Setter Property="Foreground" Value="{DynamicResource DatePickerForeground}" /> |
| 2097 | + <Setter Property="Background" Value="{DynamicResource DatePickerBackground}" /> |
2106 | 2098 | <Setter Property="BorderBrush" Value="{DynamicResource ControlElevationBorderBrush}" />
|
2107 | 2099 | <Setter Property="BorderThickness" Value="{StaticResource DatePickerBorderThemeThickness}" />
|
2108 | 2100 | <Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
|
|
2116 | 2108 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
2117 | 2109 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
2118 | 2110 | <Setter Property="OverridesDefaultStyle" Value="True" />
|
| 2111 | + <Setter Property="KeyboardNavigation.TabNavigation" Value="Local" /> |
2119 | 2112 | <Setter Property="Template">
|
2120 | 2113 | <Setter.Value>
|
2121 | 2114 | <ControlTemplate TargetType="{x:Type DatePicker}">
|
|
2126 | 2119 | </Grid.RowDefinitions>
|
2127 | 2120 | <Grid Grid.Row="0" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
|
2128 | 2121 | <Border x:Name="ContentBorder" MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}" Padding="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding Border.CornerRadius}">
|
2129 |
| - <Grid x:Name="PART_Root" FocusManager.FocusedElement="{Binding ElementName=PART_Button}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> |
| 2122 | + <Grid x:Name="PART_Root" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> |
2130 | 2123 | <Grid.ColumnDefinitions>
|
2131 | 2124 | <ColumnDefinition Width="*" />
|
2132 | 2125 | <ColumnDefinition Width="Auto" />
|
|
2142 | 2135 | </Grid>
|
2143 | 2136 | </Border>
|
2144 | 2137 | <!-- The Accent Border is a separate element so that changes to the border thickness do not affect the position of the element -->
|
2145 |
| - <Border x:Name="AccentBorder" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="{StaticResource DatePickerAccentBorderThemeThickness}" CornerRadius="{TemplateBinding Border.CornerRadius}"> |
2146 |
| - <Border.BorderBrush> |
2147 |
| - <SolidColorBrush Color="{DynamicResource ControlStrongStrokeColorDefault}" /> |
2148 |
| - </Border.BorderBrush> |
2149 |
| - </Border> |
| 2138 | + <Border x:Name="AccentBorder" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="{StaticResource DatePickerAccentBorderThemeThickness}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{DynamicResource ControlStrongStrokeColorDefaultBrush}" /> |
2150 | 2139 | </Grid>
|
2151 | 2140 | <Popup x:Name="PART_Popup" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Top" AllowsTransparency="True" Placement="Bottom" PlacementTarget="{Binding ElementName=PART_TextBox}" StaysOpen="False" />
|
2152 | 2141 | </Grid>
|
2153 | 2142 | <ControlTemplate.Triggers>
|
2154 | 2143 | <Trigger Property="IsKeyboardFocusWithin" Value="True">
|
2155 | 2144 | <Setter TargetName="AccentBorder" Property="BorderThickness" Value="0,0,0,2" />
|
2156 |
| - <Setter TargetName="AccentBorder" Property="BorderBrush"> |
2157 |
| - <Setter.Value> |
2158 |
| - <SolidColorBrush Color="{DynamicResource SystemAccentColorSecondary}" /> |
2159 |
| - </Setter.Value> |
2160 |
| - </Setter> |
2161 |
| - <Setter TargetName="ContentBorder" Property="Background"> |
2162 |
| - <Setter.Value> |
2163 |
| - <SolidColorBrush Color="{DynamicResource ControlFillColorInputActive}" /> |
2164 |
| - </Setter.Value> |
2165 |
| - </Setter> |
| 2145 | + <Setter TargetName="AccentBorder" Property="BorderBrush" Value="{DynamicResource DatePickerFocusedBorderBrush}" /> |
| 2146 | + <Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource DatePickerBackgroundFocused}" /> |
2166 | 2147 | </Trigger>
|
2167 | 2148 | <MultiTrigger>
|
2168 | 2149 | <MultiTrigger.Conditions>
|
2169 | 2150 | <Condition Property="IsEnabled" Value="True" />
|
2170 | 2151 | <Condition Property="IsMouseOver" Value="True" />
|
2171 | 2152 | <Condition Property="IsKeyboardFocusWithin" Value="False" />
|
2172 | 2153 | </MultiTrigger.Conditions>
|
2173 |
| - <Setter TargetName="ContentBorder" Property="Background"> |
2174 |
| - <Setter.Value> |
2175 |
| - <SolidColorBrush Color="{DynamicResource ControlFillColorSecondary}" /> |
2176 |
| - </Setter.Value> |
2177 |
| - </Setter> |
| 2154 | + <Setter TargetName="ContentBorder" Property="Background" Value="{DynamicResource DatePickerBackgroundPointerOver}" /> |
2178 | 2155 | </MultiTrigger>
|
2179 | 2156 | <Trigger Property="IsEnabled" Value="True">
|
2180 | 2157 | <Setter Property="Cursor" Value="IBeam" />
|
|
3071 | 3048 | <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
|
3072 | 3049 | <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
3073 | 3050 | <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
3074 |
| - <Setter Property="PasswordChar" Value="â—" /> |
| 3051 | + <Setter Property="PasswordChar" Value="●" /> |
3075 | 3052 | <Setter Property="Border.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
|
3076 | 3053 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
3077 | 3054 | <Setter Property="OverridesDefaultStyle" Value="True" />
|
|
0 commit comments