-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreenRecordingWindow.xaml
More file actions
97 lines (89 loc) · 5.54 KB
/
Copy pathScreenRecordingWindow.xaml
File metadata and controls
97 lines (89 loc) · 5.54 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<Window x:Class="AndroidWidget.ScreenRecordingWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:chrome="clr-namespace:AndroidWidget.Presentation.Chrome"
xmlns:core="clr-namespace:AndroidWidget.Core;assembly=AndroidWidget.Core"
Title="Запись экрана" Icon="{StaticResource AppIconImage}"
Width="520" Height="520" MinWidth="480" MinHeight="490"
ResizeMode="NoResize" WindowStartupLocation="CenterOwner"
Style="{StaticResource DialogWindowStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="44" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<chrome:DialogTitleBar Title="Запись экрана"
Subtitle="{x:Static core:ProductVersion.ProductLabel}" />
<Grid Grid.Row="1" Margin="24,16,24,22">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel>
<TextBlock Text="Запись экрана" FontSize="23" FontWeight="SemiBold"
Foreground="{DynamicResource TextPrimary}" />
<TextBlock x:Name="DeviceNameText" Margin="0,4,0,0"
Foreground="{DynamicResource TextSecondary}" />
</StackPanel>
<Border Grid.Row="1" Margin="0,18,0,0" Style="{StaticResource DialogCard}">
<StackPanel>
<TextBlock Text="Что произойдёт после запуска" FontWeight="SemiBold"
Foreground="{DynamicResource TextPrimary}" />
<TextBlock Margin="0,10,0,0" TextWrapping="Wrap"
Foreground="{DynamicResource TextSecondary}"
Text="1. Запись начнётся сразу и откроется окно scrcpy с экраном телефона." />
<TextBlock Margin="0,6,0,0" TextWrapping="Wrap"
Foreground="{DynamicResource TextSecondary}"
Text="2. Для завершения снова откройте действия карточки и нажмите «Остановить». Также можно закрыть scrcpy." />
<TextBlock Margin="0,6,0,0" TextWrapping="Wrap"
Foreground="{DynamicResource TextSecondary}"
Text="3. Файл MKV будет готов только после остановки записи." />
<CheckBox x:Name="DoNotShowAgainCheck" Margin="0,14,0,0"
Content="Больше не показывать это окно"
Style="{StaticResource DialogCheckBox}" />
</StackPanel>
</Border>
<StackPanel Grid.Row="2" Margin="0,14,0,0">
<TextBlock Text="Файл записи" FontSize="10.5"
Foreground="{DynamicResource TextSecondary}" />
<TextBox x:Name="RecordingPathText" Margin="0,5,0,0" IsReadOnly="True"
Style="{StaticResource DialogTextBox}" />
</StackPanel>
<Border Grid.Row="3" Margin="0,14,0,0" Padding="13,11" CornerRadius="11"
Background="{DynamicResource MutedSurfaceBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Ellipse x:Name="StateDot" Width="10" Height="10" Margin="0,0,9,0"
Fill="{DynamicResource Accent}" VerticalAlignment="Center" />
<TextBlock x:Name="StateText" Grid.Column="1" Text="Готово к записи"
FontWeight="SemiBold" Foreground="{DynamicResource TextPrimary}" />
</Grid>
</Border>
<TextBlock x:Name="HintText" Grid.Row="4" Margin="2,10,2,0"
Foreground="{DynamicResource TextSecondary}" FontSize="10.5"
TextWrapping="Wrap"
Text="Запись не начнётся, пока вы не нажмёте кнопку ниже." />
<Grid Grid.Row="5" Margin="0,14,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Button x:Name="CloseDialogButton" Grid.Column="1" Content="Отмена" MinWidth="92"
Margin="0,0,8,0" Style="{StaticResource DialogButton}"
Click="CloseButton_Click" />
<Button x:Name="PrimaryButton" Grid.Column="2" Content="Начать запись" MinWidth="142"
Style="{StaticResource DialogButton}" IsDefault="True"
Click="PrimaryButton_Click" />
</Grid>
</Grid>
</Grid>
</Window>