Skip to content

Conversation

@zealot-zew
Copy link
Contributor

@zealot-zew zealot-zew commented Jan 29, 2026

This change updates the theme initialization logic to check for a system preference if no user defined preference is found in the cache. It also adds a listener to ensure the app reacts if the user changes their OS theme while the app is open (provided no override is set).

Logic Flow

  1. Check Cache: If a theme is explicitly saved, use it.
  2. System Check: If the cache is empty (first-time load), detect the system theme using matchMedia.
  3. Dynamic Update: Listen for OS-level changes to update the UI instantly, but ignore them if the user has manually picked a preference.

This change updates the theme initialization logic to check for a system preference if no user-defined preference is found in the cache. It also adds a listener to ensure the app reacts if the user changes their OS theme while the app is open (provided no override is set).
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

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