Protected ReadonlyapplyThe callback that will be called to apply a new theme.
Protected ReadonlylocalContains the user's last selected theme, saving and loading it to disk for persistence.
Protected ReadonlyremoveA callback to remove the global theme preference listener.
The currently selected theme. If you use multiple clients to set the same theme, this might get out of sync.
Tracks the user's ViraThemeSelection and bridges it to a consumer-supplied
applyThemecallback. Persists the selection in LocalStorage via an internalLocalStorageClient, and listens for system color-scheme changes to re-apply the theme in auto mode without persisting.The initial theme is applied during construction.