Browse Source
Merge pull request #9137 from robloo/template-part-name-fixes
Fix some template part names in selectors
pull/9141/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
7 additions and
7 deletions
-
src/Avalonia.Themes.Fluent/Controls/DatePicker.xaml
-
src/Avalonia.Themes.Fluent/Controls/TimePicker.xaml
-
src/Avalonia.Themes.Simple/Controls/DatePicker.xaml
-
src/Avalonia.Themes.Simple/Controls/TimePicker.xaml
|
|
|
@ -153,11 +153,11 @@ |
|
|
|
</Style> |
|
|
|
|
|
|
|
<!-- Changes foreground for watermark text when SelectedDate is null--> |
|
|
|
<Style Selector="^:hasnodate /template/ Button#FlyoutButton TextBlock"> |
|
|
|
<Style Selector="^:hasnodate /template/ Button#PART_FlyoutButton TextBlock"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForeground}"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:error /template/ Button#FlyoutButton"> |
|
|
|
|
|
|
|
<Style Selector="^:error /template/ Button#PART_FlyoutButton"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource SystemControlErrorTextForegroundBrush}"/> |
|
|
|
</Style> |
|
|
|
</ControlTheme> |
|
|
|
|
|
|
|
@ -181,11 +181,11 @@ |
|
|
|
<Setter Property="Fill" Value="{DynamicResource TimePickerSpacerFillDisabled}"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:hasnotime /template/ Button#FlyoutButton TextBlock"> |
|
|
|
<Style Selector="^:hasnotime /template/ Button#PART_FlyoutButton TextBlock"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForeground}"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:error /template/ Button#FlyoutButton"> |
|
|
|
<Style Selector="^:error /template/ Button#PART_FlyoutButton"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource SystemControlErrorTextForegroundBrush}"/> |
|
|
|
</Style> |
|
|
|
</ControlTheme> |
|
|
|
|
|
|
|
@ -170,7 +170,7 @@ |
|
|
|
</Style> |
|
|
|
|
|
|
|
<!-- Changes foreground for watermark text when SelectedDate is null --> |
|
|
|
<Style Selector="^:hasnodate /template/ Button#FlyoutButton TextBlock"> |
|
|
|
<Style Selector="^:hasnodate /template/ Button#PART_FlyoutButton TextBlock"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundLowBrush}" /> |
|
|
|
</Style> |
|
|
|
</ControlTheme> |
|
|
|
|
|
|
|
@ -189,7 +189,7 @@ |
|
|
|
<Setter Property="Opacity" Value="{DynamicResource ThemeDisabledOpacity}" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:hasnotime /template/ Button#FlyoutButton TextBlock"> |
|
|
|
<Style Selector="^:hasnotime /template/ Button#PART_FlyoutButton TextBlock"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundLowBrush}" /> |
|
|
|
</Style> |
|
|
|
</ControlTheme> |
|
|
|
|