summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-06-07 22:09:28 +0100
committersr55 <[email protected]>2017-06-07 22:09:35 +0100
commit1aa9b897b0c03216683e1b0b1148bd5cda2e4f0c (patch)
treeb44fa0ba7cb24e550cfba70b8e1fd81efcc0907c /win
parent08441e9ea090870d02f1bf0eebc1e4bf3b533feb (diff)
WinGui: While Queue Jobs are in-progress, rotate the in-progress icon.
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/Views/QueueView.xaml27
1 files changed, 22 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml
index ab00f3395..cd66cecb9 100644
--- a/win/CS/HandBrakeWPF/Views/QueueView.xaml
+++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml
@@ -264,16 +264,18 @@
<Grid HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="40" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Marker -->
- <Image Grid.Column="0"
- Width="16"
- Height="16"
- Margin="10,0,10,0">
+ <Image Grid.Column="0" Width="16" Height="16" SnapsToDevicePixels="True">
+
+ <Image.LayoutTransform>
+ <RotateTransform CenterX="8" CenterY="8" Angle="0"/>
+ </Image.LayoutTransform>
+
<Image.Style>
<Style TargetType="{x:Type Image}">
<Style.Triggers>
@@ -282,6 +284,20 @@
</DataTrigger>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="In Progress">
<Setter Property="Source" Value="Images\Working0.png" />
+ <DataTrigger.EnterActions>
+ <BeginStoryboard>
+ <Storyboard>
+ <DoubleAnimation Duration="0:0:2" To="180" Storyboard.TargetProperty="(Image.LayoutTransform).(RotateTransform.Angle)" RepeatBehavior="Forever" />
+ </Storyboard>
+ </BeginStoryboard>
+ </DataTrigger.EnterActions>
+ <DataTrigger.ExitActions>
+ <BeginStoryboard>
+ <Storyboard>
+ <DoubleAnimation Duration="0:0:0" To="0" Storyboard.TargetProperty="(Image.LayoutTransform).(RotateTransform.Angle)"/>
+ </Storyboard>
+ </BeginStoryboard>
+ </DataTrigger.ExitActions>
</DataTrigger>
<DataTrigger Binding="{Binding Status, Converter={StaticResource enumComboConverter}}" Value="Completed">
<Setter Property="Source" Value="Images\Complete.png" />
@@ -407,3 +423,4 @@
</Grid>
</Window>
+