Skip to content

Commit 1c07afd

Browse files
committed
更换 Toolkit Notifications
更新 NuGet 依赖
1 parent fd97b30 commit 1c07afd

7 files changed

Lines changed: 22 additions & 21 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ body:
4242
description: Which Windows versions did you see the issue on?
4343
options:
4444
- "Insider Build (xxxxx)"
45+
- "Windows 11 version 24H2 (26100, 2024 Update)"
46+
- "Windows 11 version 23H2 (22631, November 2023 Update)"
4547
- "Windows 11 version 22H2 (22621, 2022 Update)"
4648
- "Windows 11 version 21H2 (22000)"
4749
- "Windows 10 version 22H2 (19045, 2022 Update)"

WinGetStore/Common/WeakEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public bool Equals(Action<TEventArgs> callback) =>
4545

4646
public static implicit operator Method(Action<TEventArgs> callback) => new(callback);
4747

48-
public static explicit operator Action<TEventArgs>(Method method) => method.IsDead ? null : method._method.CreateDelegate(typeof(Action<TEventArgs>), method._reference.Target) as Action<TEventArgs>;
48+
public static explicit operator Action<TEventArgs>(Method method) => method.IsDead ? null : method._method.CreateDelegate<Action<TEventArgs>>(method._reference.Target);
4949
}
5050

5151
private readonly List<Method> _list;

WinGetStore/Controls/Flyouts/SettingsFlyoutControl.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
x:Class="WinGetStore.Controls.SettingsFlyoutControl"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:clwm="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock"
5+
xmlns:cwuc="using:CommunityToolkit.WinUI.Controls"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:globalization="using:System.Globalization"
88
xmlns:helper="using:WinGetStore.Helpers"
@@ -315,14 +315,14 @@
315315
</StackPanel>
316316
</local:SettingsExpander.ActionContent>
317317
<Grid>
318-
<clwm:MarkdownTextBlock
318+
<cwuc:MarkdownTextBlock
319319
x:Name="AboutMarkdown"
320320
HorizontalAlignment="Left"
321321
Text="{x:Bind Provider.AboutTextBlockText, Mode=OneWay}">
322-
<clwm:MarkdownTextBlock.Config>
323-
<clwm:MarkdownConfig />
324-
</clwm:MarkdownTextBlock.Config>
325-
</clwm:MarkdownTextBlock>
322+
<cwuc:MarkdownTextBlock.Config>
323+
<cwuc:MarkdownConfig />
324+
</cwuc:MarkdownTextBlock.Config>
325+
</cwuc:MarkdownTextBlock>
326326
</Grid>
327327
</local:SettingsExpander>
328328
<muxc:InfoBar

WinGetStore/Helpers/ThemeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public static bool IsDarkTheme(ElementTheme actualTheme)
202202
? Application.Current.RequestedTheme == ApplicationTheme.Dark
203203
: actualTheme == ElementTheme.Dark
204204
: actualTheme == ElementTheme.Default
205-
? UISettings?.GetColorValue(UIColorType.Foreground).IsColorLight() == true
205+
? UISettings.GetColorValue(UIColorType.Foreground).IsColorLight()
206206
: actualTheme == ElementTheme.Dark;
207207
}
208208

WinGetStore/Helpers/TilesHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using Microsoft.Extensions.Logging;
1+
using CommunityToolkit.Notifications;
2+
using Microsoft.Extensions.Logging;
23
using Microsoft.Management.Deployment;
3-
using Microsoft.Toolkit.Uwp.Notifications;
44
using System;
55
using System.Collections.Generic;
66
using System.Linq;

WinGetStore/Pages/SettingsPages/SettingsPage.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
x:Class="WinGetStore.Pages.SettingsPages.SettingsPage"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:clwm="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock"
65
xmlns:controls="using:WinGetStore.Controls"
6+
xmlns:cwuc="using:CommunityToolkit.WinUI.Controls"
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:globalization="using:System.Globalization"
99
xmlns:helper="using:WinGetStore.Helpers"
@@ -332,14 +332,14 @@
332332
</StackPanel>
333333
</controls:SettingsExpander.ActionContent>
334334
<Grid>
335-
<clwm:MarkdownTextBlock
335+
<cwuc:MarkdownTextBlock
336336
x:Name="AboutMarkdown"
337337
HorizontalAlignment="Left"
338338
Text="{x:Bind Provider.AboutTextBlockText, Mode=OneWay}">
339-
<clwm:MarkdownTextBlock.Config>
340-
<clwm:MarkdownConfig />
341-
</clwm:MarkdownTextBlock.Config>
342-
</clwm:MarkdownTextBlock>
339+
<cwuc:MarkdownTextBlock.Config>
340+
<cwuc:MarkdownConfig />
341+
</cwuc:MarkdownTextBlock.Config>
342+
</cwuc:MarkdownTextBlock>
343343
</Grid>
344344
</controls:SettingsExpander>
345345
<muxc:InfoBar

WinGetStore/WinGetStore.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@
2222
</PropertyGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="CommunityToolkit.Labs.Uwp.Controls.MarkdownTextBlock" Version="0.1.250731-build.2197" />
25+
<PackageReference Include="CommunityToolkit.Labs.Notifications" Version="0.1.250829-build.2245" />
26+
<PackageReference Include="CommunityToolkit.Labs.Uwp.Controls.MarkdownTextBlock" Version="0.1.250829-build.2245" />
2627
<PackageReference Include="CommunityToolkit.Uwp.Converters" Version="8.2.250402" />
2728
<PackageReference Include="CommunityToolkit.Uwp.Extensions" Version="8.2.250402" />
2829
<PackageReference Include="CommunityToolkit.Uwp.Triggers" Version="8.2.250402" />
2930
<PackageReference Include="Karambolo.Extensions.Logging.File" Version="3.6.3" />
30-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.7" />
31-
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
31+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.8" />
3232
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.7" />
33-
<PackageReference Include="Microsoft.WindowsPackageManager.ComInterop" Version="1.11.430" />
34-
<PackageReference Include="System.Drawing.Common" Version="8.0.14" IsImplicitlyDefined="True" />
33+
<PackageReference Include="Microsoft.WindowsPackageManager.ComInterop" Version="1.11.460" />
3534
</ItemGroup>
3635

3736
<ItemGroup>

0 commit comments

Comments
 (0)