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
parent
commit
810ad6c268
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Themes.Fluent/Button.xaml

4
src/Avalonia.Themes.Fluent/Button.xaml

@ -77,7 +77,7 @@
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" />
</Style>
<Style Selector=":is(Button)">
<Style Selector="Button, RepeatButton, ToggleButton">
<Setter Property="RenderTransform" Value="none" />
<Setter Property="Transitions">
<Transitions>
@ -86,7 +86,7 @@
</Setter>
</Style>
<Style Selector=":is(Button):pressed">
<Style Selector="Button:pressed, RepeatButton:pressed, ToggleButton:pressed">
<Setter Property="RenderTransform" Value="scale(0.98)" />
</Style>

Loading…
Cancel
Save