From b4358e3f4a4f13f237a314166ba9532bd12e6009 Mon Sep 17 00:00:00 2001 From: Claw Bot Date: Sat, 7 Mar 2026 07:32:20 +0000 Subject: [PATCH] feat(theme): add switchable pure-white theme --- src/components/layout/MainLayout.tsx | 10 +++++- src/i18n/locales/en.json | 1 + src/i18n/locales/ru.json | 1 + src/i18n/locales/zh-CN.json | 1 + src/stores/useThemeStore.ts | 31 ++++++++++++---- src/styles/themes.scss | 53 ++++++++++++++++++++++++++++ src/types/common.ts | 2 +- 7 files changed, 91 insertions(+), 8 deletions(-) diff --git a/src/components/layout/MainLayout.tsx b/src/components/layout/MainLayout.tsx index 982e78b..be9ce9f 100644 --- a/src/components/layout/MainLayout.tsx +++ b/src/components/layout/MainLayout.tsx @@ -117,6 +117,12 @@ const headerIcons = { ), + whiteTheme: ( + + + + + ), autoTheme: ( @@ -571,7 +577,9 @@ export function MainLayout() { ? headerIcons.autoTheme : theme === 'dark' ? headerIcons.moon - : headerIcons.sun} + : theme === 'white' + ? headerIcons.whiteTheme + : headerIcons.sun}