From 81d9e0c38eb082f7c1f8ff96e189828b30c5df5c Mon Sep 17 00:00:00 2001 From: bobleer Date: Tue, 24 Mar 2026 23:50:07 +0800 Subject: [PATCH] feat(web-ui): follow system theme and persist selection - Add system theme option with OS preference resolution and listener cleanup\n- Split theme selection vs resolved theme id in ThemeService and store\n- Wire onboarding and basics settings; i18n for en-US and zh-CN\n- Optimize Logo-ICON.png asset size Made-with: Cursor --- src/web-ui/index.html | 10 +- src/web-ui/public/Logo-ICON.png | Bin 1192621 -> 391518 bytes .../onboarding/components/steps/ThemeStep.tsx | 13 +- .../onboarding/services/OnboardingService.ts | 4 +- .../onboarding/store/onboardingStore.ts | 13 +- .../config/components/BasicsConfig.tsx | 33 +++- .../infrastructure/theme/core/ThemeService.ts | 159 ++++++++++++------ .../infrastructure/theme/hooks/useTheme.ts | 10 +- .../src/infrastructure/theme/presets/index.ts | 23 ++- .../infrastructure/theme/store/themeStore.ts | 16 +- .../src/infrastructure/theme/types/index.ts | 4 + src/web-ui/src/locales/en-US/onboarding.json | 4 + .../src/locales/en-US/settings/basics.json | 2 + src/web-ui/src/locales/zh-CN/onboarding.json | 4 + .../src/locales/zh-CN/settings/basics.json | 2 + 15 files changed, 214 insertions(+), 83 deletions(-) diff --git a/src/web-ui/index.html b/src/web-ui/index.html index ad51c574..77a1dcc8 100644 --- a/src/web-ui/index.html +++ b/src/web-ui/index.html @@ -6,6 +6,14 @@ BitFun - AI Code Assistant +