mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-01-11 20:10:26 +00:00
Add - Added a **toggle for Downloaded Mark** in the history Add - Proxy username/password and socks Chg - Changed the folder where the **auto-update** is downloaded to Chg - Changed **Encoding presets FPS** to default to 23.976 FPS Chg - Changed the **FPS input field** in Encoding presets to a text field, allowing formats like `24000/1001` for precise 23.976 FPS Fix - Fixed **Encoding presets** not including all available dubs and subs after encoding Fix - Fixed **Encoding presets additional parameters** with spaces, which now work correctly without needing escaped quotes (`\"`) Fix - Fixed **crash ** when adding episode to queue from history
111 lines
No EOL
5.3 KiB
XML
111 lines
No EOL
5.3 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
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"
|
|
xmlns:controls="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
xmlns:utils="clr-namespace:CRD.ViewModels.Utils"
|
|
x:DataType="utils:ContentDialogEncodingPresetViewModel"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="CRD.Views.Utils.ContentDialogEncodingPresetView">
|
|
|
|
|
|
<StackPanel Spacing="10" Margin="10">
|
|
|
|
<StackPanel IsVisible="{Binding EditMode}">
|
|
<TextBlock Text="Edit Preset" Margin="0,0,0,5" />
|
|
<ComboBox HorizontalContentAlignment="Center" MinWidth="210" MaxDropDownHeight="400"
|
|
ItemsSource="{Binding CustomPresetsList}"
|
|
SelectedItem="{Binding SelectedCustomPreset}">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding PresetName}"></TextBlock>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
|
|
|
|
<!-- Preset Name -->
|
|
<StackPanel>
|
|
<TextBlock Text="Enter Preset Name" Margin="0,0,0,5" />
|
|
<TextBox Watermark="H.265 1080p" Text="{Binding PresetName}" />
|
|
<TextBlock Text="Preset name already used" FontSize="12" Foreground="{DynamicResource SystemFillColorCaution}"
|
|
IsVisible="{Binding FileExists}" />
|
|
</StackPanel>
|
|
|
|
<!-- Codec -->
|
|
<StackPanel>
|
|
<TextBlock Text="Enter Codec" Margin="0,10,0,5" />
|
|
<TextBox Watermark="libx265" Text="{Binding Codec}" />
|
|
</StackPanel>
|
|
|
|
<!-- Resolution ComboBox -->
|
|
<StackPanel>
|
|
<TextBlock Text="Select Resolution" Margin="0,10,0,5" />
|
|
<ComboBox HorizontalContentAlignment="Center" MinWidth="210" MaxDropDownHeight="400"
|
|
ItemsSource="{Binding ResolutionList}"
|
|
SelectedItem="{Binding SelectedResolution}">
|
|
</ComboBox>
|
|
</StackPanel>
|
|
|
|
<!-- Frame Rate NumberBox -->
|
|
<StackPanel>
|
|
<TextBlock Text="Enter Frame Rate" Margin="0,10,0,5" />
|
|
<!-- <controls:NumberBox Minimum="1" Maximum="999" -->
|
|
<!-- Value="{Binding FrameRate}" -->
|
|
<!-- SpinButtonPlacementMode="Inline" -->
|
|
<!-- HorizontalAlignment="Stretch" /> -->
|
|
<TextBox Watermark="24" Text="{Binding FrameRate}" />
|
|
</StackPanel>
|
|
|
|
<!-- CRF NumberBox -->
|
|
<StackPanel>
|
|
<TextBlock Text="Enter CRF (0-51) - (cq,global_quality,qp)" Margin="0,10,0,5" />
|
|
<controls:NumberBox Minimum="0" Maximum="51"
|
|
Value="{Binding Crf}"
|
|
SpinButtonPlacementMode="Inline"
|
|
HorizontalAlignment="Stretch" />
|
|
</StackPanel>
|
|
|
|
<!-- Additional Parameters -->
|
|
<StackPanel Margin="0,20,0,0">
|
|
<TextBlock Text="Additional Parameters" Margin="0,0,0,5" />
|
|
<StackPanel Orientation="Horizontal" Spacing="5">
|
|
<TextBox HorizontalAlignment="Left" MinWidth="250"
|
|
Text="{Binding AdditionalParametersString}" />
|
|
<Button HorizontalAlignment="Center" Command="{Binding AddAdditionalParam}">
|
|
<StackPanel Orientation="Horizontal">
|
|
<controls:SymbolIcon Symbol="Add" FontSize="18" />
|
|
</StackPanel>
|
|
</Button>
|
|
</StackPanel>
|
|
|
|
<ItemsControl ItemsSource="{Binding AdditionalParameters}" Margin="0,10,0,0" MaxWidth="350" HorizontalAlignment="Left">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#4a4a4a" Background="{DynamicResource ControlAltFillColorQuarternary}" BorderThickness="1"
|
|
CornerRadius="10" Margin="2">
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="{Binding stringValue}" Margin="5,0" />
|
|
<Button Content="X" FontSize="8" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
|
|
Width="15" Height="15" Padding="0"
|
|
Command="{Binding $parent[ItemsControl].((utils:ContentDialogEncodingPresetViewModel)DataContext).RemoveAdditionalParam}"
|
|
CommandParameter="{Binding .}" />
|
|
</StackPanel>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</UserControl> |