Merge pull request #129 from GrothKeiran/feat/add-switchable-pure-white-theme

feat(theme): add switchable pure-white theme
This commit is contained in:
Supra4E8C
2026-03-07 16:20:11 +08:00
committed by GitHub
7 changed files with 91 additions and 8 deletions
+9 -1
View File
@@ -117,6 +117,12 @@ const headerIcons = {
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z" />
</svg>
),
whiteTheme: (
<svg {...headerIconProps}>
<circle cx="12" cy="12" r="7" />
<circle cx="12" cy="12" r="3" fill="currentColor" stroke="none" />
</svg>
),
autoTheme: (
<svg {...headerIconProps}>
<defs>
@@ -571,7 +577,9 @@ export function MainLayout() {
? headerIcons.autoTheme
: theme === 'dark'
? headerIcons.moon
: headerIcons.sun}
: theme === 'white'
? headerIcons.whiteTheme
: headerIcons.sun}
</Button>
<Button variant="ghost" size="sm" onClick={logout} title={t('header.logout')}>
{headerIcons.logout}