djcarter85 / studland-pwa

https://studland.carterdan.net/
1 stars 0 forks source link

Determine theme colour based on user choice, not system default #32

Closed djcarter85 closed 3 months ago

djcarter85 commented 6 months ago

The user can choose the light or dark theme, or they can let the system choose it. However, the theme colour (appears in the status bar on iPhone) is determined only by the system preference. This means that if the system is set to light but the user has chosen dark (or vice versa) the theme colour doesn't match the app.

djcarter85 commented 5 months ago

https://github.com/nfl/react-helmet might help (although it hasn't been updated in 4 years).

https://stackoverflow.com/questions/46160461/how-do-you-set-the-document-title-in-react

https://stackoverflow.com/questions/57456779/change-theme-color-when-switching-to-dark-mode

djcarter85 commented 3 months ago

Fixed in #62.