|
5 | 5 | xmlns:mi_cupertino="clr-namespace:MauiIcons.Cupertino;assembly=MauiIcons.Cupertino" |
6 | 6 | xmlns:mi_material="clr-namespace:MauiIcons.Material;assembly=MauiIcons.Material"> |
7 | 7 |
|
8 | | - <Style x:Key="VideoLabelStyle" TargetType="Label"> |
9 | | - <Setter Property="TextColor" Value="#ffffff" /> |
10 | | - </Style> |
11 | | - |
12 | 8 | <Style x:Key="VideoSeekBarStyle" TargetType="Slider"> |
13 | 9 | <Setter Property="ThumbColor" Value="Transparent" /> |
14 | 10 | <Setter Property="HorizontalOptions" Value="FillAndExpand" /> |
15 | 11 | </Style> |
16 | 12 |
|
| 13 | + <Style x:Key="VideoControlsPanelStyle" TargetType="Layout"> |
| 14 | + <Setter Property="Padding" Value="2,0,2,2" /> |
| 15 | + <Setter Property="BackgroundColor" Value="{x:Null}" /> |
| 16 | + <Setter Property="Background"> |
| 17 | + <Setter.Value> |
| 18 | + <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> |
| 19 | + <GradientStop Offset="0" Color="#00000000" /> |
| 20 | + <GradientStop Offset="0.4" Color="#80000000" /> |
| 21 | + <GradientStop Offset="1" Color="#BB000000" /> |
| 22 | + </LinearGradientBrush> |
| 23 | + </Setter.Value> |
| 24 | + </Setter> |
| 25 | + </Style> |
| 26 | + |
| 27 | + <Style x:Key="VideoElapsedTimeLabelStyle" TargetType="Label"> |
| 28 | + <Setter Property="HorizontalOptions" Value="StartAndExpand" /> |
| 29 | + <Setter Property="Margin" Value="15,4,15,0" /> |
| 30 | + <Setter Property="FontSize" Value="Small" /> |
| 31 | + <Setter Property="TextColor" Value="#FFFFFF" /> |
| 32 | + <Setter Property="VerticalOptions" Value="Center" /> |
| 33 | + </Style> |
| 34 | + |
| 35 | + <Style x:Key="VideoRemainingTimeLabelStyle" TargetType="Label"> |
| 36 | + <Setter Property="HorizontalOptions" Value="StartAndExpand" /> |
| 37 | + <Setter Property="Margin" Value="15,4,15,0" /> |
| 38 | + <Setter Property="FontSize" Value="Small" /> |
| 39 | + <Setter Property="TextColor" Value="#FFFFFF" /> |
| 40 | + <Setter Property="VerticalOptions" Value="Center" /> |
| 41 | + </Style> |
| 42 | + |
17 | 43 | <Style x:Key="VideoBaseButtonStyle" TargetType="Button"> |
18 | 44 | <Setter Property="CornerRadius" Value="0" /> |
19 | 45 | <Setter Property="Background" Value="Transparent" /> |
|
26 | 52 | TargetType="Button"> |
27 | 53 | <OnPlatform x:TypeArguments="Setter"> |
28 | 54 | <On Platform="Android"> |
29 | | - <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material AspectRatio}" /> |
| 55 | + <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material AspectRatio, IconSize=24}" /> |
30 | 56 | </On> |
31 | 57 | <On Platform="iOS"> |
32 | | - <Setter Property="mi:MauiIcon.Value" Value="{mi_cupertino:Cupertino RectangleCompressVertical}" /> |
| 58 | + <Setter Property="mi:MauiIcon.Value" Value="{mi_cupertino:Cupertino RectangleCompressVertical, IconSize=24}" /> |
33 | 59 | </On> |
34 | 60 | </OnPlatform> |
35 | 61 | </Style> |
|
38 | 64 | x:Key="VideoLockButtonStyle" |
39 | 65 | BasedOn="{StaticResource VideoBaseButtonStyle}" |
40 | 66 | TargetType="Button"> |
| 67 | + <Setter Property="Text" Value="{x:Null}" /> |
41 | 68 | <OnPlatform x:TypeArguments="Setter"> |
42 | 69 | <On Platform="Android"> |
43 | 70 | <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material Lock}" /> |
|
52 | 79 | x:Key="VideoUnlockButtonStyle" |
53 | 80 | BasedOn="{StaticResource VideoBaseButtonStyle}" |
54 | 81 | TargetType="Button"> |
| 82 | + <Setter Property="Text" Value="{x:Null}" /> |
| 83 | + |
55 | 84 | <OnPlatform x:TypeArguments="Setter"> |
56 | 85 | <On Platform="Android"> |
57 | 86 | <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material LockOpen}" /> |
|
68 | 97 | TargetType="Button"> |
69 | 98 | <OnPlatform x:TypeArguments="Setter"> |
70 | 99 | <On Platform="Android"> |
71 | | - <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material Replay5}" /> |
| 100 | + <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material Replay5, IconSize=24}" /> |
72 | 101 | </On> |
73 | 102 | <On Platform="iOS"> |
74 | | - <Setter Property="mi:MauiIcon.Value" Value="{mi_cupertino:Cupertino Gobackward}" /> |
| 103 | + <Setter Property="mi:MauiIcon.Value" Value="{mi_cupertino:Cupertino Gobackward, IconSize=24}" /> |
75 | 104 | </On> |
76 | 105 | </OnPlatform> |
77 | 106 | </Style> |
|
82 | 111 | TargetType="Button"> |
83 | 112 | <OnPlatform x:TypeArguments="Setter"> |
84 | 113 | <On Platform="Android"> |
85 | | - <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material Forward5}" /> |
| 114 | + <Setter Property="mi:MauiIcon.Value" Value="{mi_material:Material Forward5, IconSize=24}" /> |
86 | 115 | </On> |
87 | 116 | <On Platform="iOS"> |
88 | | - <Setter Property="mi:MauiIcon.Value" Value="{mi_cupertino:Cupertino Goforward}" /> |
| 117 | + <Setter Property="mi:MauiIcon.Value" Value="{mi_cupertino:Cupertino Goforward, IconSize=24}" /> |
89 | 118 | </On> |
90 | 119 | </OnPlatform> |
91 | 120 | </Style> |
|
0 commit comments