kresus merge requestshttps://framagit.org/kresusapp/kresus/-/merge_requests2020-05-03T13:15:38Zhttps://framagit.org/kresusapp/kresus/-/merge_requests/1231💄 — Use CSS media prefers-color-scheme on splash screen2020-05-03T13:15:38ZLuc Didry💄 — Use CSS media prefers-color-scheme on splash screenUsers using a dark theme on there OS will obviously have a lot of chances to choose Kresus’ dark theme. But the theme is not initialized on splash screen (whene you arrive on your Kresus).
Using `@media (prefers-color-scheme: dark)` on ...Users using a dark theme on there OS will obviously have a lot of chances to choose Kresus’ dark theme. But the theme is not initialized on splash screen (whene you arrive on your Kresus).
Using `@media (prefers-color-scheme: dark)` on the splash screen avoid hurting dark theme lovers’ eyes with a white background 🙂
Works on Firefox Nightly, I don’t know for other browsers or versions, but it’s a [standard CSS property](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) and if the browser doesn’t support it, it’s not used (no effect).Nicolas Frandeboeufmail@nicofrand.euNicolas Frandeboeufmail@nicofrand.eu