mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2026-11-24 03:37:47 +08:00
feat(desktop): 专辑页接上真实下载,首页卡片接上跳转
两个页面看着完成,实际什么都不做。 专辑页:StartDownloadAsync 只有一句注释和 Task.Delay(1000) —— 按钮会亮,进度条 会动,一个文件也不会写。现在它会扫描所选目录(与歌词页相同的 IFileScanner + ITagLoader 路径)、把找到的曲目填进表格,并调用 IAlbumDownloader,用第一个提交 加的回调逐行更新封面落盘状态。"停止"真的会取消。列显示歌曲、艺术家和逐行状态, 头部沿用歌词页那套扫描/下载计数。 首页:两张"快速操作"卡片是没有 Command 的 Button —— 从来没接过任何逻辑。现在 它们分别跳到歌词页、专辑页、解密页;功能列表也做了本地化,不再是四句硬编码 英文。卡片外观不变,只换了命令和文案。
This commit is contained in:
1 parent
695c696e7f
commit
c614315601
4 files changed
+359
-56
No files matched your search
@@ -1,7 +1,14 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using Avalonia.Threading;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.Extensions.Options;
|
||||
using ZonyLrcTools.Common;
|
||||
using ZonyLrcTools.Common.Album;
|
||||
using ZonyLrcTools.Common.Configuration;
|
||||
using ZonyLrcTools.Common.Infrastructure.IO;
|
||||
using ZonyLrcTools.Common.Infrastructure.Threading;
|
||||
using ZonyLrcTools.Common.TagInfo;
|
||||
using ZonyLrcTools.Desktop.Infrastructure.Localization;
|
||||
using ZonyLrcTools.Desktop.Services;
|
||||
|
||||
@@ -11,9 +18,14 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
{
|
||||
private readonly IAlbumDownloader _albumDownloader;
|
||||
private readonly IDialogService _dialogService;
|
||||
private readonly IFileScanner _fileScanner;
|
||||
private readonly ITagLoader _tagLoader;
|
||||
private readonly GlobalOptions _options;
|
||||
private readonly IUILocalizationService? _localization;
|
||||
|
||||
private CancellationTokenSource? _downloadCts;
|
||||
private readonly Dictionary<string, AlbumFileViewModel> _musicFileMap = new();
|
||||
private List<MusicInfo> _scannedMusicInfos = new();
|
||||
|
||||
[ObservableProperty]
|
||||
private string? _selectedFolderPath;
|
||||
@@ -34,9 +46,26 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
private double _progressPercentage;
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(StartDownloadCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(SelectFolderCommand))]
|
||||
[NotifyPropertyChangedFor(nameof(CanStartDownload))]
|
||||
private bool _isDownloading;
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(StartDownloadCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(SelectFolderCommand))]
|
||||
[NotifyPropertyChangedFor(nameof(CanStartDownload))]
|
||||
private bool _isScanning;
|
||||
|
||||
[ObservableProperty]
|
||||
private int _scanProgressCount;
|
||||
|
||||
[ObservableProperty]
|
||||
private int _scanTotalCount;
|
||||
|
||||
[ObservableProperty]
|
||||
private double _scanProgressPercentage;
|
||||
|
||||
// Localized strings
|
||||
public string AlbumTitle => _localization?["Album_Title"] ?? "Album Cover Download";
|
||||
public string AlbumDescription => _localization?["Album_Description"] ?? "Download album artwork for your music collection";
|
||||
@@ -46,6 +75,7 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
public string AlbumParallel => _localization?["Album_Parallel"] ?? "Parallel:";
|
||||
public string AlbumStartDownload => _localization?["Album_StartDownload"] ?? "Start Download";
|
||||
public string AlbumStopDownload => _localization?["Album_StopDownload"] ?? "Stop Download";
|
||||
public string AlbumScanning => _localization?["Lyrics_Status_Scanning"] ?? "Scanning files...";
|
||||
public string CommonTotal => _localization?["Common_Total"] ?? "Total:";
|
||||
public string CommonFiles => _localization?["Common_Files"] ?? "files";
|
||||
public string CommonSuccess => _localization?["Common_Success"] ?? "Success:";
|
||||
@@ -54,21 +84,27 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
public string ColumnArtist => _localization?["Column_Artist"] ?? "Artist";
|
||||
public string ColumnStatus => _localization?["Column_Status"] ?? "Status";
|
||||
|
||||
public bool CanStartDownload => !IsDownloading && !string.IsNullOrEmpty(SelectedFolderPath);
|
||||
public bool CanStartDownload => !IsDownloading && !IsScanning && MusicFiles.Count > 0;
|
||||
|
||||
public bool HasNoFiles => MusicFiles.Count == 0;
|
||||
|
||||
public string EmptyStateText => _localization?["Album_EmptyState"] ?? "No tasks yet, please select a folder to start scanning";
|
||||
|
||||
public ObservableCollection<MusicFileViewModel> MusicFiles { get; } = new();
|
||||
public ObservableCollection<AlbumFileViewModel> MusicFiles { get; } = new();
|
||||
|
||||
public AlbumDownloadViewModel(
|
||||
IAlbumDownloader albumDownloader,
|
||||
IDialogService dialogService,
|
||||
IFileScanner fileScanner,
|
||||
ITagLoader tagLoader,
|
||||
IOptions<GlobalOptions> options,
|
||||
IUILocalizationService? localization = null)
|
||||
{
|
||||
_albumDownloader = albumDownloader;
|
||||
_dialogService = dialogService;
|
||||
_fileScanner = fileScanner;
|
||||
_tagLoader = tagLoader;
|
||||
_options = options.Value;
|
||||
_localization = localization;
|
||||
|
||||
if (_localization != null)
|
||||
@@ -79,6 +115,8 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
MusicFiles.CollectionChanged += (_, _) =>
|
||||
{
|
||||
OnPropertyChanged(nameof(HasNoFiles));
|
||||
OnPropertyChanged(nameof(CanStartDownload));
|
||||
StartDownloadCommand.NotifyCanExecuteChanged();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -92,6 +130,7 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
OnPropertyChanged(nameof(AlbumParallel));
|
||||
OnPropertyChanged(nameof(AlbumStartDownload));
|
||||
OnPropertyChanged(nameof(AlbumStopDownload));
|
||||
OnPropertyChanged(nameof(AlbumScanning));
|
||||
OnPropertyChanged(nameof(CommonTotal));
|
||||
OnPropertyChanged(nameof(CommonFiles));
|
||||
OnPropertyChanged(nameof(CommonSuccess));
|
||||
@@ -102,36 +141,151 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
OnPropertyChanged(nameof(EmptyStateText));
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
[RelayCommand(CanExecute = nameof(CanSelectFolder))]
|
||||
private async Task SelectFolderAsync()
|
||||
{
|
||||
var folder = await _dialogService.ShowFolderPickerAsync("Select Music Folder");
|
||||
var folder = await _dialogService.ShowFolderPickerAsync(
|
||||
_localization?["Album_SelectFolder"] ?? "Select Music Folder");
|
||||
if (string.IsNullOrEmpty(folder)) return;
|
||||
|
||||
SelectedFolderPath = folder;
|
||||
OnPropertyChanged(nameof(CanStartDownload));
|
||||
await ScanFilesAsync();
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task StartDownloadAsync()
|
||||
private bool CanSelectFolder => !IsScanning && !IsDownloading;
|
||||
|
||||
/// <summary>
|
||||
/// Tag-read the folder the same way the lyrics page does: identical row set, so the user sees
|
||||
/// the same songs whichever feature they open first.
|
||||
/// </summary>
|
||||
private async Task ScanFilesAsync()
|
||||
{
|
||||
if (string.IsNullOrEmpty(SelectedFolderPath)) return;
|
||||
|
||||
IsScanning = true;
|
||||
MusicFiles.Clear();
|
||||
_musicFileMap.Clear();
|
||||
_scannedMusicInfos.Clear();
|
||||
ScanProgressCount = 0;
|
||||
ScanTotalCount = 0;
|
||||
ScanProgressPercentage = 0;
|
||||
TotalCount = 0;
|
||||
CompletedCount = 0;
|
||||
FailedCount = 0;
|
||||
ProgressPercentage = 0;
|
||||
|
||||
try
|
||||
{
|
||||
var files = (await _fileScanner.ScanMusicFilesAsync(SelectedFolderPath, _options.SupportFileExtensions))
|
||||
.ToList();
|
||||
|
||||
if (files.Count == 0)
|
||||
{
|
||||
await _dialogService.ShowMessageAsync(
|
||||
_localization?["Common_Info"] ?? "Info",
|
||||
_localization?["Error_NoMusicFiles"] ?? "No music files found in the selected folder.");
|
||||
return;
|
||||
}
|
||||
|
||||
ScanTotalCount = files.Count;
|
||||
|
||||
using var warpTask = new WarpTask(ParallelCount);
|
||||
var scanTasks = files.Select(file =>
|
||||
warpTask.RunAsync(async () =>
|
||||
{
|
||||
var musicInfo = await _tagLoader.LoadTagAsync(file);
|
||||
|
||||
await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
if (musicInfo != null &&
|
||||
(!string.IsNullOrEmpty(musicInfo.Name) || !string.IsNullOrEmpty(musicInfo.Artist)))
|
||||
{
|
||||
var vm = new AlbumFileViewModel
|
||||
{
|
||||
FilePath = musicInfo.FilePath,
|
||||
Name = musicInfo.Name,
|
||||
Artist = musicInfo.Artist,
|
||||
StatusMessage = _localization?["Status_Pending"] ?? "Pending"
|
||||
};
|
||||
MusicFiles.Add(vm);
|
||||
_musicFileMap[musicInfo.FilePath] = vm;
|
||||
_scannedMusicInfos.Add(musicInfo);
|
||||
}
|
||||
|
||||
ScanProgressCount++;
|
||||
ScanProgressPercentage = ScanProgressCount * 100.0 / ScanTotalCount;
|
||||
});
|
||||
}));
|
||||
|
||||
await Task.WhenAll(scanTasks);
|
||||
|
||||
TotalCount = MusicFiles.Count;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
await _dialogService.ShowMessageAsync(
|
||||
_localization?["Common_Error"] ?? "Error",
|
||||
ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
IsScanning = false;
|
||||
OnPropertyChanged(nameof(CanStartDownload));
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand(CanExecute = nameof(CanStartDownload))]
|
||||
private async Task StartDownloadAsync()
|
||||
{
|
||||
if (_scannedMusicInfos.Count == 0) return;
|
||||
|
||||
IsDownloading = true;
|
||||
CompletedCount = 0;
|
||||
FailedCount = 0;
|
||||
ProgressPercentage = 0;
|
||||
TotalCount = _scannedMusicInfos.Count;
|
||||
|
||||
foreach (var vm in MusicFiles)
|
||||
{
|
||||
vm.IsProcessed = false;
|
||||
vm.IsSuccessful = false;
|
||||
vm.StatusMessage = _localization?["Status_Pending"] ?? "Pending";
|
||||
}
|
||||
|
||||
_downloadCts = new CancellationTokenSource();
|
||||
|
||||
try
|
||||
{
|
||||
// TODO: Implement actual download logic using _albumDownloader
|
||||
await Task.Delay(1000, _downloadCts.Token); // Placeholder
|
||||
await _albumDownloader.DownloadAsync(
|
||||
_scannedMusicInfos,
|
||||
ParallelCount,
|
||||
async musicInfo =>
|
||||
{
|
||||
await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
if (_musicFileMap.TryGetValue(musicInfo.FilePath, out var vm))
|
||||
{
|
||||
vm.IsProcessed = true;
|
||||
vm.IsSuccessful = musicInfo.IsSuccessful;
|
||||
vm.StatusMessage = musicInfo.IsSuccessful
|
||||
? _localization?["Status_Success"] ?? "Success"
|
||||
: _localization?["Status_Failed"] ?? "Failed";
|
||||
}
|
||||
|
||||
if (musicInfo.IsSuccessful)
|
||||
CompletedCount++;
|
||||
else
|
||||
FailedCount++;
|
||||
|
||||
var done = CompletedCount + FailedCount;
|
||||
ProgressPercentage = done * 100.0 / TotalCount;
|
||||
});
|
||||
},
|
||||
_downloadCts.Token);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
// User cancelled
|
||||
// User cancelled.
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -147,3 +301,24 @@ public partial class AlbumDownloadViewModel : ViewModelBase
|
||||
_downloadCts?.Cancel();
|
||||
}
|
||||
}
|
||||
|
||||
public partial class AlbumFileViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
private string _filePath = string.Empty;
|
||||
|
||||
[ObservableProperty]
|
||||
private string _name = string.Empty;
|
||||
|
||||
[ObservableProperty]
|
||||
private string _artist = string.Empty;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _isProcessed;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _isSuccessful;
|
||||
|
||||
[ObservableProperty]
|
||||
private string? _statusMessage;
|
||||
}
|
||||
@@ -1,15 +1,89 @@
|
||||
using System.Reflection;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using ZonyLrcTools.Desktop.Infrastructure.Localization;
|
||||
using ZonyLrcTools.Desktop.Services;
|
||||
|
||||
namespace ZonyLrcTools.Desktop.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// The landing page. Its only job is to point people at the three things this app actually does,
|
||||
/// so every quick-action button navigates for real instead of sitting there looking clickable.
|
||||
/// </summary>
|
||||
public partial class HomeViewModel : ViewModelBase
|
||||
{
|
||||
[ObservableProperty]
|
||||
private string _welcomeMessage = "Welcome to ZonyLrcTools X";
|
||||
private readonly INavigationService _navigation;
|
||||
private readonly IUILocalizationService _localization;
|
||||
|
||||
public HomeViewModel(INavigationService navigation, IUILocalizationService localization)
|
||||
{
|
||||
_navigation = navigation;
|
||||
_localization = localization;
|
||||
_localization.LanguageChanged += OnLanguageChanged;
|
||||
_version = ResolveVersion();
|
||||
}
|
||||
|
||||
[ObservableProperty]
|
||||
private string _description = "A cross-platform tool for downloading lyrics and album covers for your music collection.";
|
||||
private string _version;
|
||||
|
||||
[ObservableProperty]
|
||||
private string _version = "4.0.3";
|
||||
public string WelcomeMessage => _localization["Home_Welcome"];
|
||||
public string Description => _localization["Home_Description"];
|
||||
public string QuickActionsTitle => _localization["Home_QuickActions"];
|
||||
public string FeaturesTitle => _localization["Home_Features"];
|
||||
public string FeatureFormats => _localization["Home_FeatureFormats"];
|
||||
public string FeatureParallel => _localization["Home_FeatureParallel"];
|
||||
public string FeatureEncodings => _localization["Home_FeatureEncodings"];
|
||||
public string FeatureCrossPlatform => _localization["Home_FeatureCrossPlatform"];
|
||||
public string VersionLabel => _localization["Home_Version"];
|
||||
|
||||
// Card copy: title + one-line explanation, both localized.
|
||||
public string LyricsCardTitle => _localization["Home_DownloadLyrics"];
|
||||
public string LyricsCardDescription => _localization["Home_DownloadLyricsHint"];
|
||||
public string AlbumCardTitle => _localization["Home_DownloadAlbumCover"];
|
||||
public string AlbumCardDescription => _localization["Home_DownloadAlbumCoverHint"];
|
||||
public string DecryptCardTitle => _localization["Home_Decrypt"];
|
||||
public string DecryptCardDescription => _localization["Home_DecryptHint"];
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenLyrics() => _navigation.NavigateRoot<LyricsDownloadViewModel>();
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenAlbum() => _navigation.NavigateRoot<AlbumDownloadViewModel>();
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenDecrypt() => _navigation.NavigateRoot<DecryptViewModel>();
|
||||
|
||||
private void OnLanguageChanged(object? sender, EventArgs e)
|
||||
{
|
||||
OnPropertyChanged(nameof(WelcomeMessage));
|
||||
OnPropertyChanged(nameof(Description));
|
||||
OnPropertyChanged(nameof(QuickActionsTitle));
|
||||
OnPropertyChanged(nameof(FeaturesTitle));
|
||||
OnPropertyChanged(nameof(FeatureFormats));
|
||||
OnPropertyChanged(nameof(FeatureParallel));
|
||||
OnPropertyChanged(nameof(FeatureEncodings));
|
||||
OnPropertyChanged(nameof(FeatureCrossPlatform));
|
||||
OnPropertyChanged(nameof(VersionLabel));
|
||||
OnPropertyChanged(nameof(LyricsCardTitle));
|
||||
OnPropertyChanged(nameof(LyricsCardDescription));
|
||||
OnPropertyChanged(nameof(AlbumCardTitle));
|
||||
OnPropertyChanged(nameof(AlbumCardDescription));
|
||||
OnPropertyChanged(nameof(DecryptCardTitle));
|
||||
OnPropertyChanged(nameof(DecryptCardDescription));
|
||||
}
|
||||
|
||||
private static string ResolveVersion()
|
||||
{
|
||||
var assembly = typeof(HomeViewModel).Assembly;
|
||||
var informational = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(informational))
|
||||
{
|
||||
// Strip the "+<commit sha>" suffix that SourceLink appends.
|
||||
var plusIndex = informational.IndexOf('+');
|
||||
return plusIndex > 0 ? informational[..plusIndex] : informational;
|
||||
}
|
||||
|
||||
return assembly.GetName().Version?.ToString(3) ?? "4.0.3";
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@
|
||||
<Button Grid.Row="0" Grid.Column="2"
|
||||
Content="{Binding AlbumBrowse}"
|
||||
Command="{Binding SelectFolderCommand}"
|
||||
MinWidth="80"
|
||||
MinWidth="88"
|
||||
HorizontalAlignment="Stretch" />
|
||||
|
||||
<!-- Separator -->
|
||||
@@ -70,8 +70,9 @@
|
||||
Orientation="Horizontal" Spacing="8">
|
||||
<Button Command="{Binding StartDownloadCommand}"
|
||||
IsVisible="{Binding !IsDownloading}"
|
||||
IsEnabled="{Binding CanStartDownload}"
|
||||
Classes="accent"
|
||||
MinWidth="120">
|
||||
MinWidth="132">
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<PathIcon Data="{StaticResource DownloadIcon}"
|
||||
Width="14" Height="14" />
|
||||
@@ -82,10 +83,25 @@
|
||||
<Button Command="{Binding CancelDownloadCommand}"
|
||||
Content="{Binding AlbumStopDownload}"
|
||||
IsVisible="{Binding IsDownloading}"
|
||||
MinWidth="100" />
|
||||
MinWidth="108" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- Row 3: Progress -->
|
||||
<!-- Row 3a: Scan progress -->
|
||||
<StackPanel Grid.Row="3" Grid.ColumnSpan="3"
|
||||
IsVisible="{Binding IsScanning}"
|
||||
Spacing="8" Margin="0,16,0,0">
|
||||
<ProgressBar Value="{Binding ScanProgressPercentage}"
|
||||
Maximum="100" Height="6" />
|
||||
<TextBlock HorizontalAlignment="Center" FontSize="12" Opacity="0.7">
|
||||
<Run Text="{Binding AlbumScanning}" />
|
||||
<Run Text=" " />
|
||||
<Run Text="{Binding ScanProgressCount}" />
|
||||
<Run Text=" / " />
|
||||
<Run Text="{Binding ScanTotalCount}" />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Row 3b: Download progress -->
|
||||
<StackPanel Grid.Row="3" Grid.ColumnSpan="3"
|
||||
IsVisible="{Binding IsDownloading}"
|
||||
Spacing="8" Margin="0,16,0,0">
|
||||
@@ -113,15 +129,15 @@
|
||||
BorderThickness="0"
|
||||
Background="Transparent">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn x:DataType="vm:MusicFileViewModel"
|
||||
<DataGridTextColumn x:DataType="vm:AlbumFileViewModel"
|
||||
Header="{loc:Localize Column_SongName}"
|
||||
Binding="{Binding Name}"
|
||||
Width="*" />
|
||||
<DataGridTextColumn x:DataType="vm:MusicFileViewModel"
|
||||
<DataGridTextColumn x:DataType="vm:AlbumFileViewModel"
|
||||
Header="{loc:Localize Column_Artist}"
|
||||
Binding="{Binding Artist}"
|
||||
Width="200" />
|
||||
<DataGridTextColumn x:DataType="vm:MusicFileViewModel"
|
||||
<DataGridTextColumn x:DataType="vm:AlbumFileViewModel"
|
||||
Header="{loc:Localize Column_Status}"
|
||||
Binding="{Binding StatusMessage}"
|
||||
Width="120" />
|
||||
|
||||
@@ -17,38 +17,77 @@
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- Quick Actions -->
|
||||
<!-- Quick Actions: every card navigates for real -->
|
||||
<Border Background="{DynamicResource CardBackgroundBrush}"
|
||||
CornerRadius="8"
|
||||
BoxShadow="0 2 8 0 #0D000000"
|
||||
Padding="24">
|
||||
<StackPanel Spacing="16">
|
||||
<TextBlock Text="Quick Actions"
|
||||
<TextBlock Text="{Binding QuickActionsTitle}"
|
||||
FontSize="18"
|
||||
FontWeight="SemiBold" />
|
||||
|
||||
<WrapPanel Orientation="Horizontal">
|
||||
<Button Margin="0,0,16,16"
|
||||
Padding="24,16"
|
||||
CornerRadius="8">
|
||||
CornerRadius="8"
|
||||
MinWidth="240"
|
||||
Command="{Binding OpenLyricsCommand}">
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="Download Lyrics"
|
||||
FontWeight="SemiBold" />
|
||||
<TextBlock Text="Batch download lyrics for your music"
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<PathIcon Data="{StaticResource MusicNoteIcon}"
|
||||
Width="16" Height="16"
|
||||
Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding LyricsCardTitle}"
|
||||
FontWeight="SemiBold"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<TextBlock Text="{Binding LyricsCardDescription}"
|
||||
FontSize="12"
|
||||
Opacity="0.7" />
|
||||
Opacity="0.7"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button Margin="0,0,16,16"
|
||||
Padding="24,16"
|
||||
CornerRadius="8">
|
||||
CornerRadius="8"
|
||||
MinWidth="240"
|
||||
Command="{Binding OpenAlbumCommand}">
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="Download Album Covers"
|
||||
FontWeight="SemiBold" />
|
||||
<TextBlock Text="Get album artwork for your collection"
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<PathIcon Data="{StaticResource ImageIcon}"
|
||||
Width="16" Height="16"
|
||||
Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding AlbumCardTitle}"
|
||||
FontWeight="SemiBold"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<TextBlock Text="{Binding AlbumCardDescription}"
|
||||
FontSize="12"
|
||||
Opacity="0.7" />
|
||||
Opacity="0.7"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button Margin="0,0,16,16"
|
||||
Padding="24,16"
|
||||
CornerRadius="8"
|
||||
MinWidth="240"
|
||||
Command="{Binding OpenDecryptCommand}">
|
||||
<StackPanel Spacing="8">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<PathIcon Data="{StaticResource LockIcon}"
|
||||
Width="16" Height="16"
|
||||
Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding DecryptCardTitle}"
|
||||
FontWeight="SemiBold"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<TextBlock Text="{Binding DecryptCardDescription}"
|
||||
FontSize="12"
|
||||
Opacity="0.7"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</WrapPanel>
|
||||
@@ -61,36 +100,35 @@
|
||||
BoxShadow="0 2 8 0 #0D000000"
|
||||
Padding="24">
|
||||
<StackPanel Spacing="16">
|
||||
<TextBlock Text="Features"
|
||||
<TextBlock Text="{Binding FeaturesTitle}"
|
||||
FontSize="18"
|
||||
FontWeight="SemiBold" />
|
||||
|
||||
<ItemsControl>
|
||||
<ItemsControl.Items>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="Multiple lyrics sources: NetEase, QQ Music, KuGou, KuWo" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="Batch processing with parallel downloads" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="Support for translation lyrics" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="Cross-platform: Windows, macOS, Linux" />
|
||||
</StackPanel>
|
||||
</ItemsControl.Items>
|
||||
</ItemsControl>
|
||||
<StackPanel Spacing="8">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding FeatureFormats}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding FeatureParallel}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding FeatureEncodings}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4">
|
||||
<TextBlock Text="*" FontWeight="Bold" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Text="{Binding FeatureCrossPlatform}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- Version Info -->
|
||||
<TextBlock Opacity="0.5" FontSize="12">
|
||||
<Run Text="Version " />
|
||||
<Run Text="{Binding VersionLabel}" />
|
||||
<Run Text=" " />
|
||||
<Run Text="{Binding Version}" />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
Reference in new issue
Block a user