Browse Source
Merge pull request #4724 from AvaloniaUI/fixes/only-specific-buttons-should-have-pressing-animation
Only specific buttons should have pressing animation
pull/4728/head
Jumar Macato
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.Themes.Fluent/Button.xaml
|
|
@ -77,7 +77,7 @@ |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector=":is(Button)"> |
|
|
<Style Selector="Button, RepeatButton, ToggleButton"> |
|
|
<Setter Property="RenderTransform" Value="none" /> |
|
|
<Setter Property="RenderTransform" Value="none" /> |
|
|
<Setter Property="Transitions"> |
|
|
<Setter Property="Transitions"> |
|
|
<Transitions> |
|
|
<Transitions> |
|
|
@ -86,7 +86,7 @@ |
|
|
</Setter> |
|
|
</Setter> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector=":is(Button):pressed"> |
|
|
<Style Selector="Button:pressed, RepeatButton:pressed, ToggleButton:pressed"> |
|
|
<Setter Property="RenderTransform" Value="scale(0.98)" /> |
|
|
<Setter Property="RenderTransform" Value="scale(0.98)" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
|