Skip to content

Commit

Permalink
Merge pull request #117 from ConchbrainClub/main
Browse files Browse the repository at this point in the history
update default theme
  • Loading branch information
lixinyang123 authored Jan 4, 2024
2 parents 0ec5be8 + a3518ff commit d9795b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MixApp.Shared/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

<FluentStack class="footer" Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Center">
<p>
<span2023 - Conchbrain Club</span>
<span2024 - Conchbrain Club</span>
&nbsp;<strong><a href="https://beian.miit.gov.cn/" target="_blank">豫ICP备18041216号-5</a></strong>
</p>
</FluentStack>
Expand Down
4 changes: 2 additions & 2 deletions MixApp.Shared/Pages/Setting.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ protected override async Task OnInitializedAsync()
ThemeOptions =
[
new Option<string> { Text = "p.setting.theme_auto", Value = "" },
new Option<string> { Text = "p.setting.light", Value = "#f5f5f5" },
new Option<string> { Text = "p.setting.dark", Value = "#333333" }
new Option<string> { Text = "p.setting.dark", Value = "#272727" },
new Option<string> { Text = "p.setting.light", Value = "#f5f5f5" }
];

string theme = await LocalStorage.GetItemAsStringAsync("theme").AsTask();
Expand Down
4 changes: 2 additions & 2 deletions MixApp.Shared/Shared/MainLayout.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -50,7 +50,7 @@ private async Task InitTheme()
if (string.IsNullOrEmpty(theme))
{
bool isDark = await JS.InvokeAsync<bool>("systemIsDarkTheme");
Theme = isDark ? "#333333" : "#f5f5f5";
Theme = isDark ? "#272727" : "#f5f5f5";
}
else
{
Expand Down

0 comments on commit d9795b5

Please sign in to comment.