icmx/xv

Better theme switching

Closed this issue · 0 comments

icmx commented

There should be better theme switching route:

  1. Query Local Storage for current theme setting.
  2. If there are no theme setting, then apply one preferred by device (dark if prefer-dark is enabled, light otherwise).
  3. If there are theme setting saved before, then apply it.
  4. For now, if current theme is light, then next will be dark, and vice versa.