diff --git a/DownKyi/ViewModels/ViewPublicationViewModel.cs b/DownKyi/ViewModels/ViewPublicationViewModel.cs index 6ad5896..475f045 100644 --- a/DownKyi/ViewModels/ViewPublicationViewModel.cs +++ b/DownKyi/ViewModels/ViewPublicationViewModel.cs @@ -261,6 +261,10 @@ namespace DownKyi.ViewModels #endregion + /// + /// 添加到下载 + /// + /// private async void AddToDownload(bool isOnlySelected) { // 收藏夹里只有视频 @@ -364,7 +368,7 @@ namespace DownKyi.ViewModels BitmapImage cover; if (coverUrl == null || coverUrl == "") { - cover = new BitmapImage(new Uri($"pack://application:,,,/Resources/video-placeholder.png")); + cover = null; // new BitmapImage(new Uri($"pack://application:,,,/Resources/video-placeholder.png")); } else { @@ -398,7 +402,7 @@ namespace DownKyi.ViewModels { Avid = video.Aid, Bvid = video.Bvid, - Cover = cover, + Cover = cover ?? new BitmapImage(new Uri($"pack://application:,,,/Resources/video-placeholder.png")), Duration = video.Length, Title = video.Title, PlayNumber = play, diff --git a/DownKyi/Views/ViewPublication.xaml b/DownKyi/Views/ViewPublication.xaml index 889e450..f971a33 100644 --- a/DownKyi/Views/ViewPublication.xaml +++ b/DownKyi/Views/ViewPublication.xaml @@ -41,12 +41,12 @@ @@ -57,7 +57,7 @@ Height="35" MaxWidth="190" Margin="0,10,0,0" - Foreground="Black" + Foreground="{DynamicResource BrushTextDark}" Tag="{Binding Bvid}" Text="{Binding Title}" TextTrimming="CharacterEllipsis" @@ -83,7 +83,7 @@ Source="/DownKyi;component/Resources/play.png" /> @@ -93,7 +93,7 @@ Source="/DownKyi;component/Resources/time.png" />