|
85 | 85 | <StaticResource x:Key="OutlinedPasswordBoxFontSize" ResourceKey="BodyLargeFontSize" />
|
86 | 86 | <StaticResource x:Key="OutlinedPasswordBoxCharacterSpacing" ResourceKey="BodyLargeCharacterSpacing" />
|
87 | 87 | <!--#endregion-->
|
| 88 | + |
| 89 | + <CornerRadius x:Key="OutlinedPasswordBoxCornerRadius">4</CornerRadius> |
| 90 | + <x:Double x:Key="OutlinedPasswordBoxMinHeight">58</x:Double> |
| 91 | + <Thickness x:Key="OutlinedPasswordBoxBorderPadding">1</Thickness> |
| 92 | + <Thickness x:Key="OutlinedPasswordBoxBorderThickness">1</Thickness> |
| 93 | + <Thickness x:Key="OutlinedPasswordBoxPadding">16,4,8,4</Thickness> |
| 94 | + <Thickness x:Key="OutlinedPasswordBoxBorderThicknessPointerOver">2</Thickness> |
| 95 | + <Thickness x:Key="OutlinedPasswordBoxBorderPaddingPointerOver">0</Thickness> |
| 96 | + <Thickness x:Key="OutlinedPasswordBoxBorderThicknessFocused">2</Thickness> |
| 97 | + <Thickness x:Key="OutlinedPasswordBoxBorderPaddingFocused">0</Thickness> |
| 98 | + |
| 99 | + <CornerRadius x:Key="FilledPasswordBoxCornerRadius">4,4,0,0</CornerRadius> |
| 100 | + <x:Double x:Key="FilledPasswordBoxMinHeight">56</x:Double> |
| 101 | + <x:Double x:Key="FilledPasswordBoxBorderHeightPointerOver">2</x:Double> |
| 102 | + <x:Double x:Key="FilledPasswordBoxBorderHeightFocused">2</x:Double> |
| 103 | + <Thickness x:Key="FilledPasswordBoxPadding">16,4,8,4</Thickness> |
88 | 104 | </ResourceDictionary>
|
89 | 105 | <ResourceDictionary x:Key="Light">
|
90 | 106 | <!--#region Glyph-->
|
|
99 | 115 | <StaticResource x:Key="PasswordBoxLeadingIconForeground" ResourceKey="OnSurfaceVariantBrush" />
|
100 | 116 | <StaticResource x:Key="PasswordBoxLeadingIconForegroundDisabled" ResourceKey="OnSurfaceLowBrush" />
|
101 | 117 | <!--#endregion-->
|
102 |
| - |
| 118 | + |
103 | 119 | <!--#region MaterialFilledPasswordBoxStyle-->
|
104 | 120 | <StaticResource x:Key="FilledPasswordBoxBackground" ResourceKey="SurfaceVariantBrush" />
|
105 | 121 | <StaticResource x:Key="FilledPasswordBoxBackgroundPointerOver" ResourceKey="OnSurfaceVariantHoverBrush" />
|
|
163 | 179 | <StaticResource x:Key="OutlinedPasswordBoxFontSize" ResourceKey="BodyLargeFontSize" />
|
164 | 180 | <StaticResource x:Key="OutlinedPasswordBoxCharacterSpacing" ResourceKey="BodyLargeCharacterSpacing" />
|
165 | 181 | <!--#endregion-->
|
| 182 | + |
| 183 | + <CornerRadius x:Key="OutlinedPasswordBoxCornerRadius">4</CornerRadius> |
| 184 | + <x:Double x:Key="OutlinedPasswordBoxMinHeight">58</x:Double> |
| 185 | + <Thickness x:Key="OutlinedPasswordBoxBorderPadding">1</Thickness> |
| 186 | + <Thickness x:Key="OutlinedPasswordBoxBorderThickness">1</Thickness> |
| 187 | + <Thickness x:Key="OutlinedPasswordBoxPadding">16,4,8,4</Thickness> |
| 188 | + <Thickness x:Key="OutlinedPasswordBoxBorderThicknessPointerOver">2</Thickness> |
| 189 | + <Thickness x:Key="OutlinedPasswordBoxBorderPaddingPointerOver">0</Thickness> |
| 190 | + <Thickness x:Key="OutlinedPasswordBoxBorderThicknessFocused">2</Thickness> |
| 191 | + <Thickness x:Key="OutlinedPasswordBoxBorderPaddingFocused">0</Thickness> |
| 192 | + |
| 193 | + <CornerRadius x:Key="FilledPasswordBoxCornerRadius">4,4,0,0</CornerRadius> |
| 194 | + <x:Double x:Key="FilledPasswordBoxMinHeight">56</x:Double> |
| 195 | + <x:Double x:Key="FilledPasswordBoxBorderHeightPointerOver">2</x:Double> |
| 196 | + <x:Double x:Key="FilledPasswordBoxBorderHeightFocused">2</x:Double> |
| 197 | + <Thickness x:Key="FilledPasswordBoxPadding">16,4,8,4</Thickness> |
166 | 198 | </ResourceDictionary>
|
167 | 199 | </ResourceDictionary.ThemeDictionaries>
|
168 | 200 |
|
|
211 | 243 | <Setter Property="BorderBrush" Value="{ThemeResource FilledPasswordBoxBorderBrush}" />
|
212 | 244 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
213 | 245 | <Setter Property="VerticalContentAlignment" Value="Center" />
|
214 |
| - <Setter Property="CornerRadius" Value="4,4,0,0" /> |
215 |
| - <Setter Property="Padding" Value="16,4,8,4" /> |
216 |
| - <Setter Property="MinHeight" Value="58" /> |
| 246 | + <Setter Property="CornerRadius" Value="{ThemeResource FilledPasswordBoxCornerRadius}" /> |
| 247 | + <Setter Property="Padding" Value="{ThemeResource FilledPasswordBoxPadding}" /> |
| 248 | + <Setter Property="MinHeight" Value="{ThemeResource FilledPasswordBoxMinHeight}" /> |
217 | 249 |
|
218 | 250 | <!-- Start: Body Large Typo -->
|
219 | 251 | <Setter Property="FontFamily" Value="{ThemeResource FilledPasswordBoxFontFamily}" />
|
|
242 | 274 | <Setter Target="ContentElement.Foreground" Value="{ThemeResource FilledPasswordBoxForegroundPointerOver}" />
|
243 | 275 | <Setter Target="PlaceholderElement.Foreground" Value="{ThemeResource FilledPasswordBoxPlaceholderForegroundPointerOver}" />
|
244 | 276 | <Setter Target="Root.Background" Value="{ThemeResource FilledPasswordBoxBackgroundPointerOver}" />
|
245 |
| - <Setter Target="NormalBorder.Height" Value="2" /> |
| 277 | + <Setter Target="NormalBorder.Height" Value="{ThemeResource FilledPasswordBoxBorderHeightPointerOver}" /> |
246 | 278 | </VisualState.Setters>
|
247 | 279 | </VisualState>
|
248 | 280 |
|
|
266 | 298 | <Setter Target="ContentElement.Foreground" Value="{ThemeResource FilledPasswordBoxForegroundFocused}" />
|
267 | 299 | <Setter Target="PlaceholderElement.Foreground" Value="{ThemeResource FilledPasswordBoxPlaceholderForegroundFocused}" />
|
268 | 300 | <Setter Target="Root.Background" Value="{ThemeResource FilledPasswordBoxBackgroundFocused}" />
|
269 |
| - <Setter Target="NormalBorder.Height" Value="2" /> |
| 301 | + <Setter Target="NormalBorder.Height" Value="{ThemeResource FilledPasswordBoxBorderHeightFocused}" /> |
270 | 302 | </VisualState.Setters>
|
271 | 303 |
|
272 | 304 | <Storyboard>
|
|
418 | 450 | <Setter Property="Background" Value="{ThemeResource OutlinedPasswordBoxBackground}" />
|
419 | 451 | <Setter Property="Foreground" Value="{ThemeResource OutlinedPasswordBoxForeground}" />
|
420 | 452 | <Setter Property="BorderBrush" Value="{ThemeResource OutlinedPasswordBoxBorderBrush}" />
|
421 |
| - <Setter Property="BorderThickness" Value="1" /> |
422 |
| - <Setter Property="CornerRadius" Value="4" /> |
| 453 | + <Setter Property="BorderThickness" Value="{ThemeResource OutlinedPasswordBoxBorderThickness}" /> |
| 454 | + <Setter Property="CornerRadius" Value="{ThemeResource OutlinedPasswordBoxCornerRadius}" /> |
423 | 455 | <Setter Property="HorizontalContentAlignment" Value="Left" />
|
424 | 456 | <Setter Property="VerticalContentAlignment" Value="Center" />
|
425 |
| - <Setter Property="Padding" Value="16,4,8,4" /> |
426 |
| - <Setter Property="MinHeight" Value="56" /> |
| 457 | + <Setter Property="Padding" Value="{ThemeResource OutlinedPasswordBoxPadding}" /> |
| 458 | + <Setter Property="MinHeight" Value="{ThemeResource OutlinedPasswordBoxMinHeight}" /> |
427 | 459 |
|
428 | 460 | <!-- Start: Body Large Typo -->
|
429 | 461 | <Setter Property="FontFamily" Value="{ThemeResource OutlinedPasswordBoxFontFamily}" />
|
|
442 | 474 | BorderBrush="{TemplateBinding BorderBrush}"
|
443 | 475 | BorderThickness="{TemplateBinding BorderThickness}"
|
444 | 476 | CornerRadius="{TemplateBinding CornerRadius}"
|
445 |
| - Padding="1"> |
| 477 | + Padding="{ThemeResource OutlinedPasswordBoxBorderPadding}"> |
446 | 478 |
|
447 | 479 | <VisualStateManager.VisualStateGroups>
|
448 | 480 | <VisualStateGroup x:Name="CommonStates">
|
|
454 | 486 | <Setter Target="ContentElement.Foreground" Value="{ThemeResource OutlinedPasswordBoxForegroundPointerOver}" />
|
455 | 487 | <Setter Target="PlaceholderElement.Foreground" Value="{ThemeResource OutlinedPasswordBoxPlaceholderForegroundPointerOver}" />
|
456 | 488 | <Setter Target="Root.Background" Value="{ThemeResource OutlinedPasswordBoxBackgroundPointerOver}" />
|
457 |
| - <Setter Target="RootBorder.BorderThickness" Value="2" /> |
458 |
| - <Setter Target="RootBorder.Padding" Value="0" /> |
| 489 | + <Setter Target="RootBorder.BorderThickness" Value="{ThemeResource OutlinedPasswordBoxBorderThicknessPointerOver}" /> |
| 490 | + <Setter Target="RootBorder.Padding" Value="{ThemeResource OutlinedPasswordBoxBorderPaddingPointerOver}" /> |
459 | 491 | </VisualState.Setters>
|
460 | 492 | </VisualState>
|
461 | 493 |
|
|
479 | 511 | <Setter Target="ContentElement.Foreground" Value="{ThemeResource OutlinedPasswordBoxForegroundFocused}" />
|
480 | 512 | <Setter Target="PlaceholderElement.Foreground" Value="{ThemeResource OutlinedPasswordBoxPlaceholderForegroundFocused}" />
|
481 | 513 | <Setter Target="Root.Background" Value="{ThemeResource OutlinedPasswordBoxBackgroundFocused}" />
|
482 |
| - <Setter Target="RootBorder.BorderThickness" Value="2" /> |
483 |
| - <Setter Target="RootBorder.Padding" Value="0" /> |
| 514 | + <Setter Target="RootBorder.BorderThickness" Value="{ThemeResource OutlinedPasswordBoxBorderThicknessFocused}" /> |
| 515 | + <Setter Target="RootBorder.Padding" Value="{ThemeResource OutlinedPasswordBoxBorderPaddingFocused}" /> |
484 | 516 | </VisualState.Setters>
|
485 | 517 | </VisualState>
|
486 | 518 | </VisualStateGroup>
|
|
0 commit comments