Plume icon indicating copy to clipboard operation
Plume copied to clipboard

night mode

Open trinity-1686a opened this issue 6 years ago • 4 comments

From Matrix :

One minor thing: no night mode.

Some users prefer a darker theme, it would be great to have a simple switch somewhere on most pages to switch between two color themes, the one we already have, and a darker "night mode" one. Before implementing that, we should take into account how it should interact with #354

Plume version (and/or commit): 0.2.0

trinity-1686a avatar Jan 01 '19 10:01 trinity-1686a

there's also this CSS draft https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme

igalic avatar Jan 01 '19 11:01 igalic

Can we consider this as fixed now that we have a dark theme by default too? The only issue is that it doesn't respect prefers-color-scheme, but I don't really know if we could easily have an "automatic" version of the default theme, that switches between ligth and dark based on that.

elegaanz avatar Aug 20 '19 22:08 elegaanz

Chrome, Firefox and Safari already support it as do most mobile browsers. I think we can just add it, since CSS falls back gracefully (ignores things it doesn't know) we should be safe.


although, i have no idea how to set my preference in my Firefox.

igalic avatar Aug 21 '19 08:08 igalic

Oh, I had an idea, we could just use @import at the end of the CSS file to import the other variant when needed.

although, i have no idea how to set my preference in my Firefox.

Probably some flag in about:config for the moment? Or maybe it uses the preference from your DE?

elegaanz avatar Aug 21 '19 09:08 elegaanz