6 ms·
Dark mode by local sunlight (2021)
- pavelai 11mo agoGood idea to make it more humane. It should depend on insolation in the current place (it could differ in close locations), or user preferences. I'd prefer to turn automatic dark mode off at all. It would be great if the transition to dark mode be invisible. Like after locking laptop's screen, not in the process of work.
- vachina 11mo agoI think it would be more useful to toggle it based on ambient lighting.
- dheera 11mo agoEnter the era when every website wants camera permissions ... Or maybe there is some other sensor you could use? Like if photoelectric effect triggered some noise in your microphone or slightly more TCP retransmissions some such
- semolino 11mo agoMost devices have a built-in ambient light sensor: https://en.wikipedia.org/wiki/Ambient_light_sensor https://en.wikipedia.org/wiki/Ambient_light_sensor
- vladvasiliu 11mo agoWhat do you mean "most"? Maybe the phones, but PCs rarely have them. Outside macbooks, I only have seen one PC with a light sensor.
- semolino 11mo agoI meant most mobile devices. I think my TV has one as well.
- Jaxan 11mo agoCurrently, the switch from light to dark (or vice versa) is very disruptive. Imagine switching every few minutes just because some clouds pass by, to me that sounds terrible.
- dSebastien 11mo agoReminds me of f.lux: https://justgetflux.com/ https://justgetflux.com/
- noir_lord 11mo agoor gtk-redshift (if you are on X11). Happily KDE has it built in and does both location detection, enter co-ords or click map for setting it how you want.
- Pyrodogg 11mo agoEven with Flux, setting the profile automatically breaks down at high latitudes. If you're far enough from the equator, the sun can sod off most of the year as for how it relates to human biorythms. I'm 60°N, as with my alarm clock, I've set a static profile to follow 365 days a year since the sun is unreliable.
- alfanick 11mo agoI use Noir extension on my iphone/ipad, does it automatically when iOS/iPadOS goes into night/dark mode (which is also geo-based). Works great on OLED screens!
- jader201 11mo agoMost people that I know that prefer dark mode (myself included) prefer it regardless of sunlight or ambient lighting.
- dheera 11mo agoI prefer dark mode for image-heavy content and coding, and light mode for long amounts of natural language text, regardless of time of day.
- wffurr 11mo agoIt has to be really bright before I will switch my ebook app or feed reader to black on white instead of white on black. At a certain point, white text on black just isn’t readable but the inverse is somehow.
- lukan 11mo agoI used to think I am like this, until I noticed, in bright daylight readability is way way better in light mode. So nowdays I switch depending on the light settings (and curse all the apps who do not follow the OS settings, where I have to do it manually).
- skydhash 11mo agoFor me it’s light themes all the way. I rather turn the brightness down than switch to dark mode.
- throw-the-towel 11mo agoConversely, I prefer light mode regardless of sunlight.
- minus7 11mo agoIn my experience that's because most users run their monitors on 100% brightness instead of turning that down. I prefer light mode unless it's really dark.
- Lalabadie 11mo agoI suspect a lot of the comfort preferences come from there. The average monitor has a brightness level equivalent to screaming in a study room, and a color calibration that assumes fluorescent office lighting.
- SurceBeats 11mo agoNice! We considered this exact approach but never shipped it in the end. The geolocation permission is probably unnecessary friction and probably an overkill imho... Timezone + rough location (country-level from IP) would get 95% accuracy without the prompt. Most users will bounce on that permission dialog. Solid work though, especially the twilight transitions. Loving it!!!
- 0x1ceb00da 11mo agoThis should be an OS feature and apps should just use the system theme.
- gruez 11mo agoBoth iOS and Android allow you to set dark mode by some schedule, and that's conveyed by their respective browsers to websites.
- Jaxan 11mo agoIt is an OS setting to follow sunrise/sunset.
- marcosdumay 11mo agoWell, it is in KDE + Firefox. And yeah, the simplistic idea that day = bright and night = dark fails all the time, the OS has already other settings to deal with those failures, and your site or app should just use the system theme.
- CharlesW 11mo agoPlease use `prefers-color-scheme` to respect users' environments and default preferences instead. It's also worth noting that, for some people, this is more than just a cosmetic choice.
- gruez 11mo agoFrom TFA: >Automatically setting the theme is a nice touch for most, but accessibility comes first, and if the user has a preference, it's always right to respect their choice. >You can check for users' colour scheme preferences in CSS & JavaScript with the following snippets:
- CharlesW 11mo agoI'm glad it's mentioned, but I was trying to say "never do the thing TFA recommends" in a less harsh way, and inadvertently dulled my point.
- cluckindan 11mo agoSyncing dark mode or f.lux or OS night mode to local sunlight is nice if you live near the equator, but for folks living in the far north, it actually makes seasonal changes so much worse. Let the user decide the schedule, please.
- lucasban 11mo agoI believe most OS that have an option to do this by location also allow for manually specifying the schedule
- halapro 11mo agoI know this is from 2021, but for the love of god stop with the toggles. I have one toggle, it works system-wide. Respect it. You don't have to guess what theme I want, I already told my OS.
- kccqzy 11mo agoStrong disagree here. Many apps don't implement dark mode in the way I want. They seem to think dark mode is for conserving battery life on OLED displays and make the majority of their UI #000000. That's not what I want. I want a subtle shade of grey. I'd rather choose light mode for an individual app if that app doesn't implement dark mode correctly. Another point is that some types of content just don't work with dark mode. Maps for example. I have used multiple apps that use maps or present data on a map. None of the maps look good when dark. As such I always turn off dark mode if an app displays maps as part of its main user journey.
- JoshTriplett 11mo agoInteresting, this is the first time I've heard that opinion. For myself, I get annoyed whenever a dark mode isn't #000000; it's not about saving battery, it's about the pixels being off, which I find more readable. (I got an OLED specifically because it makes it more comfortable spending time in a terminal.) Can you say more about your use case and why you prefer gray over black?
- kccqzy 11mo agoBlack is too much contrast. The high contrast simply hurts my eyes. For a gray theme nicely done, look at the GitHub gray theme (called "soft dark") as an example.
- JoshTriplett 11mo agoFascinating. Different use cases for different people. On GitHub, I use the default dark mode ("dark default") and then enable "high contrast", which makes the background black. (I also get annoyed when light modes are dark grey on light grey, rather than black on white for maximum contrast.) There's a CSS preference for contrast. It seems easy enough to handle `@media(prefers-contrast: low)` and set a gray background. The contentious part would presumably be the default; I would have thought #000000 was the obvious default for a dark mode but apparently that's not what everyone prefers. Ideally, OSes and browsers would expose controls for this in a straightforward way, the way they handle dark mode. https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-contrast https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
- thenthenthen 11mo agoWould be nice to fade instead of binary dark/light
- growt 11mo agoNice experiment, but my Mac already switches to dark mode at the right time (I’m sure windows and Linux can do the same if you want it that way). So defaulting to system preference would already result in the same behaviour (while also covering users who always prefer light or dark).
- triclops200 11mo agoThat's funny, I implemented something similar for my stumpwm config (common lisp window manager). I created a matrix of themes for the WM, emacs, my terminal (kitty), Firefox, and my RGB light panels that change with time of day: day, late afternoon/evening, sunset/twilight, night, post-midnight, and then broken into multiple desktop variations as a way of visually knowing what virtual desktop I'm currently on. Stumpwm coordinates all of the themes for all the apps and synchronizes them with time and desktop and whatnot. Really helps with circadian rhythm, I've found. Especially because I take a live webcam feed and convolve a hexagonal mask to match my light panel's layout, so it's like having a low res window from whatever webcam I would like. And, at sunset to night, it smoothly fades the light panels into a display that represents a angle compressed sky projection of the stars relative to a fixed location moon with live phase displayed. Obligatory images: The day themes: https://youtu.be/danulUB-J-k https://youtu.be/danulUB-J-k Light panels: https://imgbox.com/MQfPNjtI https://imgbox.com/MQfPNjtI <- sunset on the hex display https://imgbox.com/qcrFxncU https://imgbox.com/qcrFxncU <- random cloudy day hex display https://imgbox.com/EOFk63WZ https://imgbox.com/EOFk63WZ <- a night still of the hex display
- nicbou 11mo agoDarkModeBuddy uses the Mac's light sensor. It works so well that I wonder why it's not how the OS works. I don't care if it's sunny outside. Rainy days in Germany can get quite dark long before Night Shift kicks in.
- acephal 11mo agoI never use this. Where I live, one will require dark mode well before the calculated sunset.