adams-toolkit

codigo-fonte GPL-3.0 · espelho oficial · commit b208bae5
Views/EditorView.xaml · 272 linhas · raw
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<UserControl x:Class="AdamsToolkit.Views.EditorView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Background="{DynamicResource BrBg}"
        AllowDrop="True" Drop="Window_Drop" DragOver="Window_DragOver" DragEnter="Window_DragOver" KeyDown="Window_KeyDown" Focusable="True" Loaded="View_Loaded">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Views/EditorTheme.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        <Style x:Key="Tool" TargetType="Button" BasedOn="{StaticResource BtnGhost}">
            <Setter Property="Padding" Value="12,7"/>
            <Setter Property="Margin" Value="0,0,6,0"/>
        </Style>
        <Style x:Key="GroupLbl" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
            <Setter Property="FontSize" Value="10"/>
            <Setter Property="Foreground" Value="{DynamicResource BrMuted}"/>
            <Setter Property="Margin" Value="4,0,0,4"/>
            <Setter Property="Typography.Capitals" Value="AllSmallCaps"/>
        </Style>
        <Style x:Key="BigIcon" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
            <Setter Property="FontSize" Value="18"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Foreground" Value="{DynamicResource BrText}"/>
        </Style>
        <Style x:Key="BigLbl" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
            <Setter Property="FontSize" Value="11"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0,2,0,0"/>
            <Setter Property="Foreground" Value="{DynamicResource BrText}"/>
        </Style>
        <Style x:Key="Big" TargetType="Button" BasedOn="{StaticResource BtnGhost}">
            <Setter Property="Padding" Value="12,6"/>
            <Setter Property="MinWidth" Value="70"/>
            <Setter Property="Margin" Value="0,0,6,6"/>
        </Style>
        <Style x:Key="BigPrimary" TargetType="Button" BasedOn="{StaticResource BtnPrimary}">
            <Setter Property="Padding" Value="12,6"/>
            <Setter Property="MinWidth" Value="70"/>
            <Setter Property="Margin" Value="0,0,6,6"/>
        </Style>
        <Style x:Key="BigDanger" TargetType="Button" BasedOn="{StaticResource BtnDanger}">
            <Setter Property="Padding" Value="12,6"/>
            <Setter Property="MinWidth" Value="70"/>
            <Setter Property="Margin" Value="0,0,6,6"/>
        </Style>
        <Style x:Key="DockTitle" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
            <Setter Property="FontSize" Value="11"/>
            <Setter Property="FontWeight" Value="SemiBold"/>
            <Setter Property="Foreground" Value="{DynamicResource BrMuted}"/>
            <Setter Property="Margin" Value="0,0,0,8"/>
            <Setter Property="Typography.Capitals" Value="AllSmallCaps"/>
        </Style>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!-- header -->
        <Border Grid.Row="0" Background="{DynamicResource BrSurface}" BorderBrush="{DynamicResource BrBorder}" BorderThickness="0,0,0,1" Padding="16,10">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="✂" FontSize="18" VerticalAlignment="Center" Margin="0,0,10,0"/>
                    <StackPanel VerticalAlignment="Center">
                        <TextBlock x:Name="FileTitle" Text="Sem ficheiro — abre um clip ou arrasta para aqui" FontSize="14" FontWeight="SemiBold"/>
                        <TextBlock x:Name="FileInfo" Text="" Style="{StaticResource Muted}"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Grid.Column="1" Orientation="Horizontal">
                    <Button Content="Abrir…" Style="{StaticResource Tool}" Click="Open_Click"/>
                    <Button Content="+ Juntar mais clips…" Style="{StaticResource Tool}" Click="Join_Click" ToolTip="Junta ao fim do que está aberto (ou arrasta ficheiros para a janela)"/>
                    <Button x:Name="DeleteBtn" Content="✕ Fechar clip" Style="{StaticResource Tool}" Click="Delete_Click" IsEnabled="False" ToolTip="Tira o clip do editor (o ficheiro fica onde está)"/>
                </StackPanel>
            </Grid>
        </Border>

        <Grid Grid.Row="1" Margin="12">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" MinWidth="520"/>
                <ColumnDefinition Width="290"/>
            </Grid.ColumnDefinitions>

            <!-- player + timeline -->
            <Grid Grid.Column="0" Margin="0,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="#000000" CornerRadius="10" ClipToBounds="True">
                    <Grid>
                        <!-- v1.79.1: de volta ao MediaElement do Windows (o FFME estragava o som) -->
                        <MediaElement x:Name="Player" LoadedBehavior="Manual" UnloadedBehavior="Manual" Stretch="Uniform" ScrubbingEnabled="True"
                                      MediaOpened="Player_MediaOpened" MediaEnded="Player_MediaEnded" MediaFailed="Player_MediaFailed" MouseLeftButtonUp="Player_Click"/>
                        <!-- arrasto: frames exatos do ffmpeg por cima do player -->
                        <Image x:Name="ScrubImage" Stretch="Uniform" Visibility="Collapsed" IsHitTestVisible="False"
                               RenderOptions.BitmapScalingMode="HighQuality"/>
                        <!-- ícone play/pausa estilo YouTube: aparece no centro, cresce e desvanece -->
                        <Border x:Name="PlayFlash" Width="84" Height="84" CornerRadius="42" Background="#B30A0917" BorderBrush="#66A855F7" BorderThickness="1"
                                HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5">
                            <Border.RenderTransform><ScaleTransform x:Name="PlayFlashScale" ScaleX="0.6" ScaleY="0.6"/></Border.RenderTransform>
                            <Border.Effect><DropShadowEffect BlurRadius="18" ShadowDepth="0" Opacity="0.55"/></Border.Effect>
                            <TextBlock x:Name="PlayFlashIcon" Text="▶" FontSize="34" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="4,0,0,2"/>
                        </Border>
                        <Border x:Name="EmptyHint" Background="#CC0A0917">
                            <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                                <TextBlock Text="Arrasta um ou mais clips para aqui" FontSize="18" HorizontalAlignment="Center"/>
                                <TextBlock Text="Como funciona: 1) Início + Fim para cada momento (A→B, C→D, …)  2) Manter só os troços ou Apagar  3) Exportar" Style="{StaticResource Muted}" HorizontalAlignment="Center" Margin="0,6,0,0"/>
                            </StackPanel>
                        </Border>
                        <Border Background="#AA0A0917" CornerRadius="6" Padding="10,5" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="10">
                            <TextBlock x:Name="TimeText" Text="00:00.000 / 00:00.000" FontFamily="Consolas" FontSize="12"/>
                        </Border>
                    </Grid>
                </Border>

                <!-- timeline -->
                <Border Grid.Row="1" Background="{DynamicResource BrCard}" BorderBrush="{DynamicResource BrBorder}" BorderThickness="1" CornerRadius="10" Padding="12,10" Margin="0,10,0,0">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="20"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="26"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Canvas x:Name="ClipsBar" Grid.Row="0" Height="18" Margin="0,0,0,2" ClipToBounds="True" SizeChanged="Track_SizeChanged"/>
                        <!-- tira de miniaturas (ffmpeg tile) — clicar/arrastar = mesmo que a barra -->
                        <Border Grid.Row="1" x:Name="StripBox" Height="56" CornerRadius="6" ClipToBounds="True" Background="{DynamicResource BrSurface}" Margin="0,0,0,4"
                                MouseLeftButtonDown="Track_Down" MouseMove="Track_Mouse" MouseLeftButtonUp="Track_Up" LostMouseCapture="Track_Lost" Cursor="SizeWE" Visibility="Collapsed">
                            <Grid>
                                <Image x:Name="Strip" Stretch="Fill" RenderOptions.BitmapScalingMode="LowQuality"/>
                                <Rectangle x:Name="StripCursor" Width="2" Fill="White" HorizontalAlignment="Left"/>
                            </Grid>
                        </Border>
                        <Canvas x:Name="Track" Grid.Row="2" Height="26" Background="{DynamicResource BrSurface}" ClipToBounds="True" MouseLeftButtonDown="Track_Down" MouseMove="Track_Mouse" MouseLeftButtonUp="Track_Up" LostMouseCapture="Track_Lost" SizeChanged="Track_SizeChanged" Cursor="SizeWE">
                            <!-- intervalos mantidos (verdes), intervalo A-B (roxo), cursor -->
                        </Canvas>
                        <Slider Grid.Row="3" x:Name="Seek" Minimum="0" Maximum="1" Margin="0,8,0,0" ValueChanged="Seek_ValueChanged" PreviewMouseDown="Seek_Down" PreviewMouseUp="Seek_Up"/>
                    </Grid>
                </Border>

                <!-- transport: grupos claros, ícone + nome + tecla -->
                <Border Grid.Row="2" Background="{DynamicResource BrCard}" BorderBrush="{DynamicResource BrBorder}" BorderThickness="1" CornerRadius="10" Padding="10,8" Margin="0,10,0,0">
                    <WrapPanel Orientation="Horizontal">
                        <StackPanel Margin="0,0,14,4">
                            <TextBlock Text="Reprodução" Style="{StaticResource GroupLbl}"/>
                            <StackPanel Orientation="Horizontal">
                                <Button x:Name="PlayBtn" Style="{StaticResource BigPrimary}" Click="Play_Click" ToolTip="Espaço">
                                    <StackPanel><TextBlock x:Name="PlayIcon" Text="▶" Style="{StaticResource BigIcon}"/><TextBlock x:Name="PlayLbl" Text="Play" Style="{StaticResource BigLbl}"/></StackPanel>
                                </Button>
                                <Button Style="{StaticResource Big}" Click="Start_Click" ToolTip="Home"><StackPanel><TextBlock Text="⏮" Style="{StaticResource BigIcon}"/><TextBlock Text="Início" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                                <Button Style="{StaticResource Big}" Click="FrameBack_Click" ToolTip="←  (Shift = 30 frames)"><StackPanel><TextBlock Text="◀" Style="{StaticResource BigIcon}"/><TextBlock Text="−5 frames" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                                <Button Style="{StaticResource Big}" Click="FrameFwd_Click" ToolTip="→  (Shift = 30 frames)"><StackPanel><TextBlock Text="▶" Style="{StaticResource BigIcon}"/><TextBlock Text="+5 frames" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                                <Button Style="{StaticResource Big}" Click="Mute_Click" ToolTip="M — som da pré-visualização"><StackPanel><TextBlock x:Name="MuteIcon" Text="🔊" Style="{StaticResource BigIcon}"/><TextBlock x:Name="MuteLbl" Text="Som" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                            </StackPanel>
                        </StackPanel>
                        <Border Width="1" Background="{DynamicResource BrBorder}" Margin="0,4,14,4"/>
                        <StackPanel Margin="0,0,14,0">
                            <TextBlock Text="1 · Marcar troços (quantos quiseres)" Style="{StaticResource GroupLbl}"/>
                            <StackPanel Orientation="Horizontal">
                                <Button x:Name="StartBtn" Style="{StaticResource Big}" Click="SetA_Click" ToolTip="tecla A — marca o início do troço (podes marcar o Fim primeiro; o início tem de ficar antes do fim)"><StackPanel><TextBlock x:Name="StartIcon" Text="[" Style="{StaticResource BigIcon}" Foreground="{DynamicResource BrAccent}"/><TextBlock x:Name="StartLbl" Text="Início (A)" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                                <Button x:Name="EndBtn" Style="{StaticResource Big}" Click="SetB_Click" ToolTip="tecla B — marca o fim do troço (também podes marcar o Fim primeiro e o Início depois)"><StackPanel><TextBlock x:Name="EndIcon" Text="]" Style="{StaticResource BigIcon}" Foreground="{DynamicResource BrAccent}"/><TextBlock x:Name="EndLbl" Text="Fim (B)" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                            </StackPanel>
                        </StackPanel>
                        <Border Width="1" Background="{DynamicResource BrBorder}" Margin="0,4,14,4"/>
                        <StackPanel Margin="0,0,14,0">
                            <TextBlock Text="2 · O que fazer com eles" Style="{StaticResource GroupLbl}"/>
                            <StackPanel Orientation="Horizontal">
                                <RadioButton x:Name="ModeKeep" Style="{StaticResource Seg}" Content="Manter troços" IsChecked="True" GroupName="segmode" Checked="SegMode_Changed" ToolTip="o clip final = só os troços marcados, seguidos"/>
                                <RadioButton x:Name="ModeRemove" Style="{StaticResource Seg}" Content="Apagar troços" GroupName="segmode" Checked="SegMode_Changed" ToolTip="o clip final = tudo menos os troços marcados"/>
                                <Button Style="{StaticResource BigDanger}" Click="RemoveLast_Click" ToolTip="Delete — remove o último troço"><StackPanel><TextBlock Text="✕" Style="{StaticResource BigIcon}"/><TextBlock Text="Remover último" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                            </StackPanel>
                        </StackPanel>
                        <Border Width="1" Background="{DynamicResource BrBorder}" Margin="0,4,14,4"/>
                        <StackPanel>
                            <TextBlock Text="Outros" Style="{StaticResource GroupLbl}"/>
                            <StackPanel Orientation="Horizontal">
                                <Button Style="{StaticResource Big}" Click="Undo_Click" ToolTip="Ctrl+Z"><StackPanel><TextBlock Text="↶" Style="{StaticResource BigIcon}"/><TextBlock Text="Anular" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                                <Button Style="{StaticResource Big}" Click="Snapshot_Click" ToolTip="guarda o frame atual em PNG"><StackPanel><TextBlock Text="📷" Style="{StaticResource BigIcon}"/><TextBlock Text="Foto" Style="{StaticResource BigLbl}"/></StackPanel></Button>
                            </StackPanel>
                        </StackPanel>
                    </WrapPanel>
                </Border>
            </Grid>

            <!-- right: segments + export -->
            <ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Border Grid.Row="0" Background="{DynamicResource BrCard}" BorderBrush="{DynamicResource BrBorder}" BorderThickness="1" CornerRadius="10" Padding="12">
                    <Grid>
                        <Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition Height="*"/><RowDefinition Height="Auto"/></Grid.RowDefinitions>
                        <TextBlock x:Name="RangesTitle" Text="Troços marcados" Style="{StaticResource DockTitle}"/>
                        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
                            <ItemsControl x:Name="RangesList">
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <Border Background="{DynamicResource BrSurface}" CornerRadius="8" Padding="10,6" Margin="0,0,0,6">
                                            <Grid>
                                                <Grid.ColumnDefinitions><ColumnDefinition Width="Auto"/><ColumnDefinition Width="*"/><ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions>
                                                <Border Width="10" Height="10" CornerRadius="5" Background="{Binding Brush}" Margin="0,0,8,0" VerticalAlignment="Center"/>
                                                <TextBlock Grid.Column="1" Text="{Binding Label}" FontFamily="Consolas" FontSize="12.5" Foreground="{DynamicResource BrText}" VerticalAlignment="Center"/>
                                                <Button Grid.Column="2" Content="✕" Style="{StaticResource BtnGhost}" Padding="8,3" Tag="{Binding Index}" Click="RangeRemove_Click" ToolTip="Remover troço"/>
                                            </Grid>
                                        </Border>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </ScrollViewer>
                        <TextBlock Grid.Row="2" x:Name="RangesTotal" Style="{StaticResource Muted}" Text="" Margin="0,6,0,0"/>
                    </Grid>
                </Border>

                <Border Grid.Row="1" Background="{DynamicResource BrCard}" BorderBrush="{DynamicResource BrBorder}" BorderThickness="1" CornerRadius="10" Padding="12" Margin="0,10,0,0">
                    <StackPanel>
                        <TextBlock Text="Exportar" Style="{StaticResource DockTitle}"/>
                        <StackPanel Orientation="Horizontal" Margin="0,0,0,8">
                            <RadioButton x:Name="ModeCopy" Style="{StaticResource Seg}" Content="Rápido" IsChecked="True" GroupName="mode" Checked="Mode_Changed" ToolTip="Sem recodificar: instantâneo, corta no keyframe mais próximo (~1-2 s)"/>
                            <RadioButton x:Name="ModePrecise" Style="{StaticResource Seg}" Content="Preciso" GroupName="mode" Checked="Mode_Changed" ToolTip="Recodifica: corte exato ao frame, permite resolução/volume/velocidade"/>
                        </StackPanel>
                        <Grid>
                            <Grid.ColumnDefinitions><ColumnDefinition Width="90"/><ColumnDefinition Width="*"/></Grid.ColumnDefinitions>
                            <Grid.RowDefinitions><RowDefinition Height="36"/><RowDefinition Height="36"/><RowDefinition Height="36"/><RowDefinition Height="36"/><RowDefinition Height="36"/></Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="Formato" Style="{StaticResource Label}"/>
                            <ComboBox Grid.Row="0" Grid.Column="1" x:Name="FmtCombo" Height="30" SelectionChanged="Mode_Changed">
                                <ComboBoxItem Content="MP4" Tag="mp4" IsSelected="True"/><ComboBoxItem Content="MKV" Tag="mkv"/><ComboBoxItem Content="GIF (sem som)" Tag="gif"/>
                            </ComboBox>
                            <TextBlock Grid.Row="1" Text="Resolução" Style="{StaticResource Label}"/>
                            <ComboBox Grid.Row="1" Grid.Column="1" x:Name="ResCombo" Height="30">
                                <ComboBoxItem Content="Igual" Tag="0" IsSelected="True"/><ComboBoxItem Content="1080p" Tag="1080"/><ComboBoxItem Content="720p" Tag="720"/><ComboBoxItem Content="480p" Tag="480"/>
                            </ComboBox>
                            <TextBlock Grid.Row="2" Text="Velocidade" Style="{StaticResource Label}"/>
                            <ComboBox Grid.Row="2" Grid.Column="1" x:Name="SpeedCombo" Height="30">
                                <ComboBoxItem Content="0.5×" Tag="0.5"/><ComboBoxItem Content="1× (normal)" Tag="1" IsSelected="True"/><ComboBoxItem Content="1.5×" Tag="1.5"/><ComboBoxItem Content="2×" Tag="2"/>
                            </ComboBox>
                            <TextBlock Grid.Row="3" Text="Áudio" Style="{StaticResource Label}"/>
                            <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
                                <CheckBox x:Name="MuteCheck" Style="{StaticResource Switch}" Content="Sem som" Checked="Mode_Changed" Unchecked="Mode_Changed"/>
                                <Slider x:Name="VolSlider" Width="90" Minimum="0" Maximum="200" Value="100" Margin="12,0,0,0" VerticalAlignment="Center"/>
                            </StackPanel>
                            <TextBlock Grid.Row="4" Text="Qualidade" Style="{StaticResource Label}"/>
                            <ComboBox Grid.Row="4" Grid.Column="1" x:Name="QualCombo" Height="30">
                                <ComboBoxItem Content="Máxima (quase sem perdas)" Tag="14" IsSelected="True"/><ComboBoxItem Content="Alta" Tag="18"/><ComboBoxItem Content="Média (ficheiro pequeno)" Tag="23"/>
                            </ComboBox>
                        </Grid>
                        <TextBlock x:Name="ModeHint" Style="{StaticResource Muted}" Margin="0,4,0,8" Text="Rápido: sem perda de qualidade, corte ao keyframe."/>
                        <Button x:Name="ExportBtn" Content="Exportar" Style="{StaticResource BtnPrimary}" Padding="14,9" Click="Export_Click" IsEnabled="False"/>
                        <TextBlock Style="{StaticResource Muted}" FontSize="10.5" Opacity="0.7" Margin="0,4,0,0" HorizontalAlignment="Center" Text="atalho: Ctrl+S"/>
                        <ProgressBar x:Name="ExportBar" Height="5" Minimum="0" Maximum="1" Margin="0,8,0,0" Foreground="{DynamicResource BrAccent}" Background="{DynamicResource BrBorder}" BorderThickness="0" Visibility="Collapsed"/>
                        <TextBlock x:Name="ExportText" Style="{StaticResource Muted}" Margin="0,6,0,0" Text=""/>
                    </StackPanel>
                </Border>
            </Grid>
            </ScrollViewer>
        </Grid>

        <Border Grid.Row="2" Background="{DynamicResource BrSurface}" BorderBrush="{DynamicResource BrBorder}" BorderThickness="0,1,0,0" Padding="14,6">
            <TextBlock x:Name="StatusLine" Style="{StaticResource Muted}" Text="Espaço = play/pausa · ← → = 5 frames · A = início · B = fim · Delete = remover último · Ctrl+Z = anular · Ctrl+S = exportar"/>
        </Border>
    </Grid>
</UserControl>