From b6e993e1e3aa5a7d6ff7cf1e83c6c8d00ac8ffa3 Mon Sep 17 00:00:00 2001
From: croire <1432593898@qq.com>
Date: Sun, 27 Feb 2022 20:39:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPublication=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E7=9A=84=E4=B8=80=E4=BA=9B=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DownKyi/ViewModels/ViewPublicationViewModel.cs | 8 ++++++--
DownKyi/Views/ViewPublication.xaml | 10 +++++-----
2 files changed, 11 insertions(+), 7 deletions(-)
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" />