Add project files.
This commit is contained in:
146
ClipForge/TrimmerWindow.xaml
Normal file
146
ClipForge/TrimmerWindow.xaml
Normal file
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window
|
||||
x:Class="ClipForge.TrimmerWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Title="ClipForge Trimmer">
|
||||
|
||||
<Window.SystemBackdrop>
|
||||
<MicaBackdrop />
|
||||
</Window.SystemBackdrop>
|
||||
|
||||
<Grid Background="Transparent">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Video Player -->
|
||||
<Border Grid.Row="0"
|
||||
Background="#0a0a0f"
|
||||
Margin="16,16,16,8">
|
||||
<MediaPlayerElement x:Name="MediaPlayer"
|
||||
AreTransportControlsEnabled="False"
|
||||
Stretch="Uniform"/>
|
||||
</Border>
|
||||
|
||||
<!-- Timeline scrubber -->
|
||||
<Border Grid.Row="1"
|
||||
Margin="16,0,16,8"
|
||||
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"
|
||||
Padding="16,12">
|
||||
<StackPanel Spacing="8">
|
||||
|
||||
<!-- Main scrubber -->
|
||||
<Slider x:Name="ScrubberSlider"
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Value="0"
|
||||
ValueChanged="ScrubberSlider_ValueChanged"/>
|
||||
|
||||
<!-- In/Out point controls -->
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- In point -->
|
||||
<StackPanel Grid.Column="0" Spacing="4">
|
||||
<TextBlock Text="IN POINT"
|
||||
FontSize="10"
|
||||
FontWeight="Bold"
|
||||
CharacterSpacing="40"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<TextBlock x:Name="InPointLabel"
|
||||
Text="0:00"
|
||||
FontFamily="Consolas"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Foreground="#E8FF47"/>
|
||||
<Button Content="Set"
|
||||
FontSize="11"
|
||||
Padding="8,4"
|
||||
Click="SetInPoint_Click"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Playback controls -->
|
||||
<StackPanel Grid.Column="1"
|
||||
Orientation="Horizontal"
|
||||
Spacing="8"
|
||||
HorizontalAlignment="Center">
|
||||
<Button x:Name="PlayButton"
|
||||
Click="PlayButton_Click"
|
||||
Width="40" Height="40">
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="14"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Out point -->
|
||||
<StackPanel Grid.Column="2"
|
||||
Spacing="4"
|
||||
HorizontalAlignment="Right">
|
||||
<TextBlock Text="OUT POINT"
|
||||
FontSize="10"
|
||||
FontWeight="Bold"
|
||||
CharacterSpacing="40"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<Button Content="Set"
|
||||
FontSize="11"
|
||||
Padding="8,4"
|
||||
Click="SetOutPoint_Click"/>
|
||||
<TextBlock x:Name="OutPointLabel"
|
||||
Text="0:30"
|
||||
FontFamily="Consolas"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Foreground="#E8FF47"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- Bottom bar -->
|
||||
<Border Grid.Row="2"
|
||||
Margin="16,0,16,16"
|
||||
Padding="16,12">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<TextBlock Text="Duration:"
|
||||
FontSize="12"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBlock x:Name="DurationLabel"
|
||||
Text="0:00"
|
||||
FontFamily="Consolas"
|
||||
FontSize="12"
|
||||
FontWeight="Bold"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="8"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Content="Cancel"
|
||||
Click="Cancel_Click"/>
|
||||
<Button Content="Export Trim"
|
||||
Style="{StaticResource AccentButtonStyle}"
|
||||
Click="ExportTrim_Click"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user