Skip to content

feat(web-ui): follow system theme and persist selection#252

Merged
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:feat/web-ui-follow-system-theme
Mar 24, 2026
Merged

feat(web-ui): follow system theme and persist selection#252
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:feat/web-ui-follow-system-theme

Conversation

@bobleer
Copy link
Collaborator

@bobleer bobleer commented Mar 24, 2026

Summary

This change adds a follow system theme option for the web UI. Theme selection (including system) is persisted separately from the resolved built-in theme id, with OS preference and media-query listener cleanup handled in ThemeService.

Changes

  • ThemeService: SYSTEM_THEME_ID, ThemeSelectionId, resolved vs selection state, and safe handling when unregistering themes.
  • Onboarding & settings: Theme step and Basics config expose the system option; onboarding store and service align with the new selection model.
  • i18n: New strings in en-US and zh-CN for onboarding and basics.
  • Assets: Logo-ICON.png optimized for smaller file size; index.html adjusted as needed.

Testing

  • Manual: switch theme in settings and onboarding; verify persistence and follow-system behavior on light/dark OS changes.

Made with Cursor

- 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
@bobleer bobleer merged commit 8b8e589 into GCWing:main Mar 24, 2026
4 checks passed
@bobleer bobleer deleted the feat/web-ui-follow-system-theme branch March 24, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant