Browse Source
Merge pull request #8817 from AvaloniaUI/fix-fluent-theme-port-bugs
Fix Fluent theme port bugs
pull/8819/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
1 additions and
15 deletions
-
src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml
-
src/Avalonia.Themes.Fluent/Controls/ButtonSpinner.xaml
-
src/Avalonia.Themes.Fluent/Controls/DatePicker.xaml
-
src/Avalonia.Themes.Fluent/Controls/TimePicker.xaml
|
|
|
@ -53,7 +53,6 @@ |
|
|
|
<Setter Property="VerticalAlignment" Value="Center" /> |
|
|
|
</ControlTheme> |
|
|
|
<ControlTheme x:Key="DataGridCellTextBoxTheme" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}"> |
|
|
|
<Setter Property="Margin" Value="12,0,12,0" /> |
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch" /> |
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
<Style Selector="^ /template/ DataValidationErrors"> |
|
|
|
|
|
|
|
@ -65,6 +65,7 @@ |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:disabled /template/ ContentPresenter#PART_ContentPresenter"> |
|
|
|
<Setter Property="Background" Value="{DynamicResource RepeatButtonBackgroundDisabled}" /> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource RepeatButtonForegroundDisabled}" /> |
|
|
|
</Style> |
|
|
|
</ControlTheme> |
|
|
|
|
|
|
|
@ -56,18 +56,11 @@ |
|
|
|
</ControlTemplate> |
|
|
|
</Setter> |
|
|
|
|
|
|
|
<Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource DatePickerButtonBorderBrushPointerOver}"/> |
|
|
|
<Setter Property="Background" Value="{DynamicResource DatePickerButtonBackgroundPointerOver}"/> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource DatePickerButtonForegroundPointerOver}"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:pressed"> |
|
|
|
<Setter Property="RenderTransform" Value="scale(0.98)" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:pressed /template/ ContentPresenter#PART_ContentPresenter"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource DatePickerButtonBorderBrushPressed}"/> |
|
|
|
<Setter Property="Background" Value="{DynamicResource DatePickerButtonBackgroundPressed}"/> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource DatePickerButtonForegroundPressed}"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
@ -55,18 +55,11 @@ |
|
|
|
</ControlTemplate> |
|
|
|
</Setter> |
|
|
|
|
|
|
|
<Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource TimePickerButtonBorderBrushPointerOver}"/> |
|
|
|
<Setter Property="Background" Value="{DynamicResource TimePickerButtonBackgroundPointerOver}"/> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TimePickerButtonForegroundPointerOver}"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:pressed"> |
|
|
|
<Setter Property="RenderTransform" Value="scale(0.98)" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="^:pressed /template/ ContentPresenter#PART_ContentPresenter"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource TimePickerButtonBorderBrushPressed}"/> |
|
|
|
<Setter Property="Background" Value="{DynamicResource TimePickerButtonBackgroundPressed}"/> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource TimePickerButtonForegroundPressed}"/> |
|
|
|
</Style> |
|
|
|
|