diff --git a/NonsPlayer/App.xaml.cs b/NonsPlayer/App.xaml.cs index 85af47f..ae42264 100644 --- a/NonsPlayer/App.xaml.cs +++ b/NonsPlayer/App.xaml.cs @@ -53,6 +53,7 @@ public App() services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); + services.AddSingleton(); // Core Services services.AddSingleton(); @@ -109,6 +110,9 @@ public App() services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + #endregion @@ -158,7 +162,6 @@ protected override async void OnLaunched(LaunchActivatedEventArgs args) base.OnLaunched(args); // App.GetService().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory)); await GetService().ActivateAsync(args); - } } diff --git a/NonsPlayer/Components/Views/Home/GreetingsCard.xaml b/NonsPlayer/Components/Views/Home/GreetingsCard.xaml index 7a83513..19a0580 100644 --- a/NonsPlayer/Components/Views/Home/GreetingsCard.xaml +++ b/NonsPlayer/Components/Views/Home/GreetingsCard.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:winUi="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - - diff --git a/NonsPlayer/Components/Views/Home/TodayDurationCard.xaml b/NonsPlayer/Components/Views/Home/TodayDurationCard.xaml index 525bbce..37485d5 100644 --- a/NonsPlayer/Components/Views/Home/TodayDurationCard.xaml +++ b/NonsPlayer/Components/Views/Home/TodayDurationCard.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:winUi="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - diff --git a/NonsPlayer/Components/Views/Home/TotalListenCard.xaml b/NonsPlayer/Components/Views/Home/TotalListenCard.xaml index 82e2d85..66c5d01 100644 --- a/NonsPlayer/Components/Views/Home/TotalListenCard.xaml +++ b/NonsPlayer/Components/Views/Home/TotalListenCard.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:winUi="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - diff --git a/NonsPlayer/Helpers/CacheHelper.cs b/NonsPlayer/Helpers/CacheHelper.cs index 0d20039..4184e1f 100644 --- a/NonsPlayer/Helpers/CacheHelper.cs +++ b/NonsPlayer/Helpers/CacheHelper.cs @@ -112,18 +112,18 @@ public static async Task UpdateImageBrushAsync(string cacheId, strin })).Data; } - // public static async Task GetPlaylistAsync(string cacheId, string id) + // public static async Task GetPlaylistAsync(string cacheId, string id) // { // return (await GetCacheItemAsync(cacheId, async () => // await PlaylistAdaptes.CreateById(long.Parse(id)))).Data; // } // - // public static Playlist GetPlaylistCard(string cacheId, JObject item) + // public static Music GetPlaylistCard(string cacheId, JObject item) // { // return GetCacheItem(cacheId, () => PlaylistAdaptes.CreateFromRecommend(item)).Data; // } // - // public static async Task UpdatePlaylistAsync(string cacheId, string id) + // public static async Task UpdatePlaylistAsync(string cacheId, string id) // { // var playlist = (await UpdateCacheItem(cacheId, async () => // await PlaylistAdaptes.CreateById(long.Parse(id)))).Data; @@ -131,7 +131,7 @@ public static async Task UpdateImageBrushAsync(string cacheId, strin // return playlist; // } // - // public static Playlist GetPlaylist(string cacheId, string id) + // public static Music GetPlaylist(string cacheId, string id) // { // return GetCacheItemAsync(cacheId, async () => // await PlaylistAdaptes.CreateById(long.Parse(id))).Result.Data; diff --git a/NonsPlayer/NonsPlayer.csproj b/NonsPlayer/NonsPlayer.csproj index 6892f97..79e3a22 100644 --- a/NonsPlayer/NonsPlayer.csproj +++ b/NonsPlayer/NonsPlayer.csproj @@ -61,6 +61,10 @@ Always + + $(DefaultXamlRuntime) + Designer + $(DefaultXamlRuntime) Designer @@ -172,6 +176,7 @@ + diff --git a/NonsPlayer/Styles/Resource.xaml b/NonsPlayer/Styles/Resource.xaml index 8a6d3ef..3d95dcd 100644 --- a/NonsPlayer/Styles/Resource.xaml +++ b/NonsPlayer/Styles/Resource.xaml @@ -8,4 +8,6 @@ 80,20,40,80 45,80,45,100 #3D3D3D + #FFFFFF + #F5F3F2 \ No newline at end of file diff --git a/NonsPlayer/Views/ShellPage.xaml b/NonsPlayer/Views/ShellPage.xaml index e0a6c93..df162bc 100644 --- a/NonsPlayer/Views/ShellPage.xaml +++ b/NonsPlayer/Views/ShellPage.xaml @@ -79,9 +79,10 @@