Skip to content

Commit

Permalink
专题页支持深色模式
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFish-233 committed Aug 23, 2023
1 parent 9a4fa4e commit c65429d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -52,7 +52,15 @@ else
_dataCacheService.ThemeSetting.IsTransparent = true;
if (string.IsNullOrWhiteSpace(Model.WebsiteAddInfor?.Color) == false)
{
_dataCacheService.ThemeSetting.Theme = Model.WebsiteAddInfor?.Color;
if(Model.WebsiteAddInfor.Color=="black")
{
_dataCacheService.ThemeSetting.IsDark = true;
}
else
{
_dataCacheService.ThemeSetting.Theme = Model.WebsiteAddInfor?.Color;
}

}
_eventService.OnTempEffectTheme();
}
Expand Down

0 comments on commit c65429d

Please sign in to comment.