From fa1a21f340d2eb91b77f359d3504726ee2e6d05f Mon Sep 17 00:00:00 2001 From: Richasy Date: Tue, 14 Feb 2023 13:29:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=BE=E7=BD=AE=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=20(#1634)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuget.config | 1 + src/App/App.csproj | 8 +- src/App/App.xaml.cs | 2 +- src/App/Controls/App/QuestionPanel.xaml | 28 +- .../Controls/Favorite/VideoFavoritePanel.xaml | 222 ++--- .../Favorite/VideoFavoritePanel.xaml.cs | 2 +- .../Settings/CacheSettingSection.xaml | 52 +- .../Settings/InitialCheckSection.xaml | 24 +- .../Settings/LoggerSettingSection.xaml | 71 +- .../Settings/NotificationSettingSection.xaml | 29 +- .../Settings/PlayerControlSettingSection.xaml | 203 ++--- .../Settings/PlayerModeSettingSection.xaml | 185 ++--- .../Settings/RoamingSettingSection.xaml | 189 ++--- .../Settings/ScreenshotSettingSection.xaml | 65 +- .../Settings/StartupSettingSection.xaml | 82 +- .../Settings/ThemeSettingSection.xaml | 62 +- .../TraditionalChineseSettingSection.xaml | 24 +- .../Pages/Desktop/Overlay/TimeLinePage.xaml | 74 +- .../Desktop/Overlay/VideoPlayerPage.xaml | 1 - src/App/Pages/Desktop/SettingPage.xaml | 4 + src/App/Pages/Xbox/SettingsPage.xaml | 5 +- src/App/Styles/Style.Overwrite.xaml | 776 +----------------- src/Lib/DI.App/DI.App.csproj | 2 +- src/Lib/DI.App/DIFactory.cs | 2 - src/Lib/DI.Container/DI.Container.csproj | 5 +- src/Lib/DI.Container/Locator.cs | 11 + .../FrostMaster.Uwp/FrostMaster.Uwp.csproj | 2 +- .../AccountProvider/AccountProvider.cs | 8 +- .../FavoriteProvider/FavoriteProvider.cs | 2 +- .../HomeProvider/HomeProvider.cs | 4 +- .../Lib.Implementation.csproj | 2 +- .../PlayerProvider.Extension.cs | 2 + src/Models/Models.App/Models.App.csproj | 2 +- .../Models.BiliBili/Models.BiliBili.csproj | 2 +- .../Player/PlayerInformation.cs | 14 +- src/Models/Models.gRPC/Models.gRPC.csproj | 6 +- src/Tasks/Tasks.csproj | 2 +- .../Toolkit/Toolkit.Uwp/Toolkit.Uwp.csproj | 2 +- .../ViewModels.Interfaces.csproj | 2 +- .../ViewModels.Uwp/Base/ViewModelBase.cs | 2 +- .../ViewModels.Uwp/ViewModels.Uwp.csproj | 2 +- 41 files changed, 554 insertions(+), 1629 deletions(-) diff --git a/nuget.config b/nuget.config index ad1f6a333..8e5c6118e 100644 --- a/nuget.config +++ b/nuget.config @@ -3,6 +3,7 @@ + diff --git a/src/App/App.csproj b/src/App/App.csproj index ae49d37a0..2a8f84716 100644 --- a/src/App/App.csproj +++ b/src/App/App.csproj @@ -1302,6 +1302,9 @@ + + 0.0.13 + 2.14.1 @@ -1327,10 +1330,7 @@ 2.8.2-prerelease.220830001 - 13.0.1 - - - 1.0.4 + 13.0.2 1.1.150 diff --git a/src/App/App.xaml.cs b/src/App/App.xaml.cs index 8963c089d..7dfa69aea 100644 --- a/src/App/App.xaml.cs +++ b/src/App/App.xaml.cs @@ -172,7 +172,7 @@ private void OnSuspending(object sender, SuspendingEventArgs e) private void OnUnhandledException(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e) { e.Handled = true; - Locator.Instance.GetService().Error(e.Exception); + Locator.Instance.GetLogger().Error(e.Exception); } private void NavigateToRootPage(object args = null) diff --git a/src/App/Controls/App/QuestionPanel.xaml b/src/App/Controls/App/QuestionPanel.xaml index 4ea61aa8c..166e94ea7 100644 --- a/src/App/Controls/App/QuestionPanel.xaml +++ b/src/App/Controls/App/QuestionPanel.xaml @@ -3,7 +3,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:exp="using:Richasy.ExpanderEx.Uwp" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" xmlns:local="using:Bili.App.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" @@ -54,30 +54,20 @@ ItemsSource="{x:Bind ViewModel.CurrentQuestionModule.Questions, Mode=OneWay}"> - - - - - - - - - - - + + + + - - - - + + + + diff --git a/src/App/Controls/Favorite/VideoFavoritePanel.xaml b/src/App/Controls/Favorite/VideoFavoritePanel.xaml index 9f30903f6..24f58cce6 100644 --- a/src/App/Controls/Favorite/VideoFavoritePanel.xaml +++ b/src/App/Controls/Favorite/VideoFavoritePanel.xaml @@ -5,9 +5,9 @@ xmlns:behaviors="using:Bili.App.Behaviors" xmlns:controls="using:Bili.App.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:exp="using:Richasy.ExpanderEx.Uwp" xmlns:icons="using:Richasy.FluentIcon.Uwp" xmlns:interactivity="using:Microsoft.Xaml.Interactivity" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" xmlns:loc="using:Bili.App.Resources.Extension" xmlns:local="using:Bili.App.Controls.Favorite" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -36,151 +36,111 @@ - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -