Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
检查Windows版本,只在19h1上使用图片背景
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 7, 2019
1 parent 382b8d5 commit 65b7808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PixivFSUWP/IllustDetailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using Windows.UI.Xaml.Media.Imaging;
using Windows.UI.Xaml.Navigation;
using AdaptiveCards;
using Microsoft.Toolkit.Uwp.Helpers;

// https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板

Expand Down Expand Up @@ -108,7 +109,8 @@ private async Task loadContent()
Wrap = true,
MaxLines = 3
});
card.BackgroundImage = new AdaptiveBackgroundImage(new Uri(await Data.OverAll.GetDataUri(illust.MediumUrl)));
var build = SystemInformation.OperatingSystemVersion.Build;
if (build >= 18362) card.BackgroundImage = new AdaptiveBackgroundImage(new Uri(await Data.OverAll.GetDataUri(illust.MediumUrl)));
await Data.OverAll.GenerateActivityAsync(illust.Title, card, new Uri(string.Format("pixiv://illust?id={0}", illustID)), illustID.ToString());
int counter = 0;
foreach (var i in illust.OriginalUrls)
Expand Down
3 changes: 3 additions & 0 deletions PixivFSUWP/PixivFSUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.8</Version>
</PackageReference>
<PackageReference Include="Microsoft.Toolkit.Uwp">
<Version>5.1.1</Version>
</PackageReference>
<PackageReference Include="PixivFS">
<Version>0.1.5</Version>
</PackageReference>
Expand Down

0 comments on commit 65b7808

Please sign in to comment.