-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMedia.xaml
71 lines (63 loc) · 4.04 KB
/
Media.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:popt="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
<BitmapImage x:Key="DefaultGameIcon" UriSource="{ThemeFile 'Images/applogo_clean.png'}" popt:Freeze="True" />
<BitmapImage x:Key="DefaultGameCover" UriSource="{ThemeFile 'Images/custom_cover_background.png'}" popt:Freeze="True" />
<TextBlock x:Key="BatteryStatusCritical" Text="" FontFamily="{StaticResource FontIcoFont}" />
<TextBlock x:Key="BatteryStatusLow" Text="" FontFamily="{StaticResource FontIcoFont}" />
<TextBlock x:Key="BatteryStatusMedium" Text="" FontFamily="{StaticResource FontIcoFont}" />
<TextBlock x:Key="BatteryStatusHigh" Text="" FontFamily="{StaticResource FontIcoFont}" />
<TextBlock x:Key="BatteryStatusCharging" Text="" FontFamily="{StaticResource FontIcoFont}" />
<Style x:Key="ProgressIndicator" TargetType="ContentControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Fill="Transparent"
StrokeThickness="0.5"
Stroke="{DynamicResource TextWhiteBrush}"/>
<Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Fill="Transparent" RenderTransformOrigin="0.5,0.5"
StrokeThickness="4"
Stroke="{DynamicResource GlyphBrush}">
<Ellipse.Resources>
<Storyboard x:Key="VisibleOn">
<DoubleAnimation Storyboard.TargetProperty="(Rectangle.RenderTransform).(RotateTransform.Angle)"
To="360" Duration="0:0:05" RepeatBehavior="Forever" />
</Storyboard>
<Storyboard x:Key="VisibleOff">
<DoubleAnimation Storyboard.TargetProperty="(Rectangle.RenderTransform).(RotateTransform.Angle)"
To="0" Duration="0:0:0"/>
</Storyboard>
</Ellipse.Resources>
<Ellipse.RenderTransform>
<RotateTransform />
</Ellipse.RenderTransform>
<Ellipse.Style>
<Style TargetType="Ellipse">
<Style.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsVisible" Value="True"/>
</MultiTrigger.Conditions>
<MultiTrigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource VisibleOn}"/>
</MultiTrigger.EnterActions>
<MultiTrigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource VisibleOff}"/>
</MultiTrigger.ExitActions>
</MultiTrigger>
</Style.Triggers>
</Style>
</Ellipse.Style>
<Ellipse.Clip>
<RectangleGeometry Rect="0,0,10,20"/>
</Ellipse.Clip>
</Ellipse>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>