mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-04-22 01:11:58 +00:00
- Added option to **enable/disable font extraction from typesetting** - Changed **Execute on Queue Finished** to allow executing `.ps1` files - Changed **tray tooltip** to show queue size and next auto refresh - Changed **tray menu** to include an option to **refresh history** - Changed **history add-to-queue order** to add episodes from **1 → x** instead of **x → 1** - Changed **updater logic** to only select releases with higher version numbers - Changed **updater** to allow **pre-releases via a toggle** - Fixed **font extraction from subtitles** sometimes incorrectly picking numbers - Fixed **displayed seasons** in the upcoming seasons tab
106 lines
No EOL
4.9 KiB
XML
106 lines
No EOL
4.9 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:vm="clr-namespace:CRD.ViewModels"
|
|
xmlns:controls="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
x:DataType="vm:UpdateViewModel"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="CRD.Views.UpdateView">
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Background="{DynamicResource ControlAltFillColorQuarternary}"></StackPanel>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="1">
|
|
|
|
<DockPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Source="/Assets/app_icon.ico"
|
|
Margin="2.5"
|
|
DockPanel.Dock="Left"
|
|
Height="65"
|
|
RenderOptions.BitmapInterpolationMode="HighQuality" />
|
|
|
|
<StackPanel Spacing="0" Margin="12 0" VerticalAlignment="Center">
|
|
<TextBlock Text="Crunchy-Downloader" />
|
|
|
|
<TextBlock Text="{Binding CurrentVersion}" />
|
|
|
|
<TextBlock Text="https://github.com/Crunchy-DL/Crunchy-Downloader"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
|
|
</StackPanel>
|
|
</DockPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal">
|
|
|
|
<ToggleSwitch HorizontalAlignment="Right" Margin="0 0 10 0 " IsChecked="{Binding GhUpdatePrereleases}" OffContent="Prereleases" OnContent="Prereleases"></ToggleSwitch>
|
|
|
|
<Button Width="70" Height="70" Background="Transparent" BorderThickness="0" Margin="5 0"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding CheckForUpdate}">
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
|
<controls:SymbolIcon Symbol="Refresh" FontSize="32" />
|
|
<TextBlock Text="Check" HorizontalAlignment="Center" TextWrapping="Wrap" FontSize="12"></TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
<Button Width="70" Height="70" Background="Transparent" BorderThickness="0" Margin="5 0"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding StartUpdate}"
|
|
IsEnabled="{Binding ProgramManager.UpdateAvailable}">
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
|
<controls:SymbolIcon Symbol="Download" FontSize="32" />
|
|
<TextBlock Text="Update" HorizontalAlignment="Center" TextWrapping="Wrap" FontSize="12"></TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
<ScrollViewer Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
HorizontalAlignment="Stretch"
|
|
IsVisible="{Binding !Updating}"
|
|
Margin="10"
|
|
VerticalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Disabled">
|
|
|
|
<Border HorizontalAlignment="Center"
|
|
MaxWidth="800">
|
|
|
|
<ItemsControl ItemsSource="{Binding ChangelogBlocks}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
|
|
</Border>
|
|
</ScrollViewer>
|
|
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Spacing="10" VerticalAlignment="Center" HorizontalAlignment="Center" IsVisible="{Binding Updating}">
|
|
<TextBlock IsVisible="{Binding !Failed}" FontSize="24" Text="Please wait while the update is being downloaded..." HorizontalAlignment="Center" Margin="0,10,0,20" />
|
|
<TextBlock IsVisible="{Binding Failed}" FontSize="24" Foreground="IndianRed" Text="Update failed check the log for more information" HorizontalAlignment="Center" Margin="0,10,0,20" />
|
|
<ProgressBar Minimum="0" Maximum="100" FontSize="24" Value="{Binding Progress}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="350" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
</UserControl> |