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
@@ -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