From a3518ff8302bcb32f94d5ec4ef4531ed5ba98d1f Mon Sep 17 00:00:00 2001 From: lixinyang123 Date: Fri, 5 Jan 2024 01:33:36 +0800 Subject: [PATCH] update default theme --- MixApp.Shared/Pages/Index.razor | 2 +- MixApp.Shared/Pages/Setting.razor.cs | 4 ++-- MixApp.Shared/Shared/MainLayout.razor.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MixApp.Shared/Pages/Index.razor b/MixApp.Shared/Pages/Index.razor index c6dd90e..9d9c502 100644 --- a/MixApp.Shared/Pages/Index.razor +++ b/MixApp.Shared/Pages/Index.razor @@ -85,7 +85,7 @@

- © 2023 - Conchbrain Club + © 2024 - Conchbrain Club  豫ICP备18041216号-5

diff --git a/MixApp.Shared/Pages/Setting.razor.cs b/MixApp.Shared/Pages/Setting.razor.cs index e0b4d93..2c4b652 100644 --- a/MixApp.Shared/Pages/Setting.razor.cs +++ b/MixApp.Shared/Pages/Setting.razor.cs @@ -125,8 +125,8 @@ protected override async Task OnInitializedAsync() ThemeOptions = [ new Option { Text = "p.setting.theme_auto", Value = "" }, - new Option { Text = "p.setting.light", Value = "#f5f5f5" }, - new Option { Text = "p.setting.dark", Value = "#333333" } + new Option { Text = "p.setting.dark", Value = "#272727" }, + new Option { Text = "p.setting.light", Value = "#f5f5f5" } ]; string theme = await LocalStorage.GetItemAsStringAsync("theme").AsTask(); diff --git a/MixApp.Shared/Shared/MainLayout.razor.cs b/MixApp.Shared/Shared/MainLayout.razor.cs index 8bdd3c3..fe298de 100644 --- a/MixApp.Shared/Shared/MainLayout.razor.cs +++ b/MixApp.Shared/Shared/MainLayout.razor.cs @@ -22,7 +22,7 @@ public class MainLayoutBase : LayoutComponentBase public Software? Software { get; set; } - public string Theme { get; set; } = "#333333"; + public string Theme { get; set; } = "#272727"; public string Color { get; set; } = "#82ddfd"; @@ -50,7 +50,7 @@ private async Task InitTheme() if (string.IsNullOrEmpty(theme)) { bool isDark = await JS.InvokeAsync("systemIsDarkTheme"); - Theme = isDark ? "#333333" : "#f5f5f5"; + Theme = isDark ? "#272727" : "#f5f5f5"; } else {