r/programming • u/rxsel • Nov 26 '20
Dark Mode Coming to GitHub After 7 Years
https://github.com/isaacs/github/issues/66#issuecomment-733446758227
u/Paradox Nov 26 '20
Can tell they're getting ready. Dark Reader has started highlighting readmes differently, with a slight background color now.
This is usually when they add a slightly darker background for the white/light/default theme
40
u/-Zenith- Nov 26 '20
Yeah my Stylus extension has gone funky. Hopefully the update is not too far away.
9
u/masklinn Nov 26 '20
The stylus extension generally has gotten patched pretty quickly when styles broke. Though obviously such breakage has become a much more frequent occurrence than it used to be if they’re prepping for their own dark mode.
0
22
u/tHeSiD Nov 26 '20
Darkreader has issues with github, there is always that once in a 5 load white flash
47
u/r00x Nov 26 '20
The surprise "your retinas are now dust" attack.
1
3
87
u/bondolo Nov 26 '20
Hopefully they offer automatic switching based upon browser preference.
I like my screen to match ambient light and usually this means light during the day time and dark at night. Having to manually switch every app or site is annoying. I am glad when the OS and browser can handle this for me.
14
u/kenman Nov 26 '20
I've been a dark moder for a very long time, but the idea of matching the sun is appealing (I already use apps to warm my colors at night). How successful have you been in your efforts?
9
u/bondolo Nov 26 '20
I am currently switching my IDE manually every day. Some days I remember to switch Twitter, Reddit. I use dark mode plugins for Google Docs.
I am old enough that I started my career on old-school green and amber screens. The eye strain was terrible, particularly in bright crappy fluorescent lighting. Ever since the Macintosh in 1984 I have preferred the light mode during day time as it results in much less eye strain.
I started using Flux on the Mac about a decade ago and quickly got used to the colour changes and dimming it provided. I was totally hooked on screen colors matching ambient light. Dark themes made that night time adaption even better.
I hope that five years from now theme switching is automatic and flux/night shift style dimming and color adaptation are available everywhere. I would even include places like train platform schedule screens, etc.
2
u/kenman Nov 26 '20
Damn, I'm not sure if I'm that dedicated, but maybe I'll try switching my work IDE. Since I primarily work only when the sun is up, hopefully I can get away with just leaving it on light. Will definitely give it a try.
I hope that five years from now theme switching is automatic and flux/night shift style dimming and color adaptation are available everywhere.
I've been pleasantly surprised that Win10, Mac, and Android have all added native f.lux support, so hopefully app developers will integrate more closely to allow for mirroring of the OS preferences.
→ More replies (5)1
u/anengineerandacat Nov 27 '20
Should, it's a media query now so anyone not doing that is kinda slacking real hard; it's harder to do a toggle than it is to just style based on browser preference.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
23
u/GYN-k4H-Q3z-75B Nov 26 '20
I love dark mode, but every app and OS should have a setting to automatically switch it based on time. I don't use dark mode during the day, I have a large window (a glass wall, really) behind my setup and love how bright it is. Only at night, dark mode is better for me.
8
u/snowe2010 Nov 26 '20
As a developer, every app I use can already do that, except Spotify.
13
7
u/hkibad Nov 26 '20
Never trust an app that doesn't have dark mode.
It means that nobody at the company has ever used the app once at home in the middle of the night. If they did, they would immediately make a dark mode so they wouldn't blind themselves.
It's a red flag that they don't use the app on their personal time at home, which means they really don't care about it.
94
17
u/soygul Nov 26 '20
GitHub dark mode extension has nearly 10K stars on GitHub! https://github.com/StylishThemes/GitHub-Dark
There are ton more great GitHub extensions, like linters etc. Highly recommended if you ever use the GitHub UI for any amount of coding or reviews.
365
Nov 26 '20 edited Nov 26 '20
Light mode gang checking in, if it hurts your eyes, your monitor is too bright.
9
u/ScrimpyCat Nov 26 '20
I just use whichever I think looks best. Some designers know how to make a great looking light mode app, while others are much better at designing for dark mode.
Never noticed any difference when it comes to using it at night (can use both comfortably), though I’ve never had eye strain issues from looking at a screen before (even when it’s pitch black). Maybe I’m immune! ... or just blind.
2
u/SkoomaDentist Nov 26 '20
The world would be a better place if all webdevs were forbidden from using a high contrast monitor.
25
Nov 26 '20
That many monitors make it really hard with their clunky OSDs to adjust the brightness isn't helping. Screens really should have dedicated keys to adjust it like the olden days – I really miss the CRT screens with POD switches to adjust everything. Or better yet: a lightsensor to adjust it automatically. I believe some Apple laptops do this (and perhaps also screens?) but I don't recall seeing it anywhere else.
I adjust my brightness all the time depending on ambient light conditions. The weather turns cloudy and it gets a bit darker: lower brightness. The sun pops out again: up the brightness goes.
15
u/Ph0X Nov 26 '20
Yeah, it's really stupid that in 2020, I still need to press 4-5 hard button on the monitor to change the brightness. On laptops this is a solved problem, but yeah it's definitely not something you can do on desktops.
29
u/andrco Nov 26 '20
Not true, if it supports DDC/CI (most should) then you can control it with for example Monitorian or ClickMonitorDDC (Windows). On Linux you can use ddcutil.
24
u/Ph0X Nov 26 '20 edited Nov 26 '20
Hmm, interesting, I'll give that a try, thanks.
EDIT: Wow, all 3 of my monitors support it, this is a life changer.
Now the real question is, why isn't this just built into Windows...
12
8
u/Sol33t303 Nov 26 '20
Some monitors support DDC/CI, using that it's possible to control your monitor through software.
I know on Linux ddcutil is available, from there you can use it to control the brightness (or anything else on your monitor for that matter) based on time by wrapping it in a bash script and giving it to cron. I'd assume Windows and Mac probably has similar software.
2
Nov 26 '20
I tried this a few years ago but couldn't get it to work; maybe it was the screen's fault, or maybe I was doing it wrong. I should probably try again.
3
u/Ropianos Nov 26 '20
For me it didn't work either but I just read up on it and I was simply missing the i2c-dev driver. Other problems are mentioned here: https://www.ddcutil.com/faq/
2
u/GenieBeule Nov 26 '20
On windows there is this https://www.nirsoft.net/utils/control_my_monitor.html
60
u/ASIC_SP Nov 26 '20
and there are programs like redshift to reduce blue light
I use 3000K all times, which has significantly reduce eye strain for me.. reddish tone felt weird initially, but now I'm used to it
5
u/ilmoeuro Nov 26 '20
On Windows (and probably Mac too) you don't even need extra software, just search for "Night light" in the settings.
5
u/ASIC_SP Nov 26 '20
Nice. Just checked for Ubuntu, and seems like newer versions have it - https://help.ubuntu.com/stable/ubuntu-help/display-night-light.html.en
3
4
→ More replies (30)1
11
u/kankyo Nov 26 '20
I have floaters in my eyes. To not see them I would have to turn down the brightness so far I can't read the text.
2
u/SwordsAndElectrons Nov 26 '20
This.
I used to not really care about light/dark themes, but then these annoying things developed in my left eye. Now looking at a screen with the brightness set too high, or an app/site that uses too much light background even on a screen with it set relatively low, drives me nuts.
13
u/Sol33t303 Nov 26 '20 edited Nov 26 '20
if it's too bright your monitor is too bright.
When I'm doing stuff late at night I have my monitor turned down to it's min brightness, even then when I switch from a dark window to a light one it hurts my eyes lol
It's fine during the day, but I just find dark mode to be easier on my eyes and I find the contrast with white characters on a black screen to be better and easier to read.
2
2
u/SkoomaDentist Nov 26 '20
But man do I wish there was a way to easily adjust the gamma so that very bright colors would be made darker...
4
2
u/LegitimateStock Nov 26 '20
Or you know, someone could have light triggered migraines and already have their monitor turned to 0,0. Even grey themes still give me migraines.
-3
Nov 26 '20
It's middle of the night and I'm fixing something that I didn't broke, fuck off with your light stuff
3
Nov 26 '20
Turn the light on fren
3
u/lavosprime Nov 26 '20
I can't speak for anyone else, but the only decent place for my WFH desk is the bedroom, and sometimes when I'm working the light needs to be off so my wife can sleep. I also have sensitive eyes...
This message brought to you by dark theme gang with 0% monitor brightness and night shift
1
u/apaethe Nov 26 '20
Consider too that if you use a dark bg in ide that the ideal brightness for that may not be same when swapping to web. Even if its not eye strain, because who really has git open that long?, its the sudden change overall color space which is jarring.
1
1
u/Fl4shbang Nov 26 '20
Dark mode user here, I don't use dark because light hurts my eyes, it's just because dark mode looks better
-3
→ More replies (39)-14
u/aaronchall Nov 26 '20
Or maybe my monitor is correctly tuned and you're just going blind.
If stars dancing in front of your eyes are your cue to stop working, your themes are too bright.
→ More replies (1)
78
18
u/shgysk8zer0 Nov 26 '20
I've been hearing this for years. Same with a Google Drive client for Linux.
32
u/J-is-Juicy Nov 26 '20
Great, how about we fix the new design first please? The amount of negative space is absolutely terrible
13
u/Rodentman87 Nov 26 '20
Solarized Light gang where you at
3
1
u/avz7 Nov 26 '20
Solarized light looks like something you'd get if you left solarized dark in the sun for a couple of years.
20
u/Isvara Nov 26 '20
ITT: people who prefer dark mode
Also ITT: people telling them why their preference is wrong
11
u/tom_strideweather Nov 26 '20
All those brave developers working around the clock for 7 years to bring us this... beautiful
4
3
3
u/a-sober-irishman Nov 26 '20
If only they would make it so that the PR file diff view defaults to no whitespace, or that preference could be saved.
3
2
u/sakistz Nov 26 '20
It would be cool if GitHub supported custom CSS themes like Wikipedia. Personally I like the dark theme on the code viewer and a white theme everywhere else, so it would be cool if I could customize it using CSS.
2
u/snowe2010 Nov 26 '20
You can. Use a user css extension like stylus and create your own theme or use/modify an existing one like GitHub Dark 2.0.
2
2
2
2
u/Takeoded Nov 26 '20
going to be hard to do a better job than https://github.com/StylishThemes/GitHub-Dark
2
u/ppezaris Nov 26 '20
Shameless plug: use codestream and your PRs can be in whatever theme you want.
2
u/CMDRGeneralPotato Nov 26 '20
Say what you will about microsoft, they do know how to design a damn good dark theme
2
u/Python4fun Nov 26 '20
I had an extension for github dark, but then got a dark mode everywhere extension instead. It would be nice to have native dark mode.
2
Nov 26 '20
I am rather surprised that a rather small handful of websites and apps provide built-in dark theme support. It's a vital benefit for one's eyesight.
8
u/Busti Nov 26 '20 edited Jan 09 '26
20
u/Isvara Nov 26 '20
The Microsoft timeline.
10
32
u/haikusbot Nov 26 '20
Github giving a shit
About their community?
What timeline is this?!?
- Busti
I detect haikus. And sometimes, successfully. Learn more about me.
Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"
7
u/LetMeUseMyEmailFfs Nov 26 '20
Good bot
1
u/vlmutolo Nov 26 '20
Except it wasn’t a haiku. I assume the bot didn’t know that “Github” is two syllables. You’d think that the bot would just ignore comments with words it doesn’t know.
1
Nov 27 '20
At least this haiku attempt follows the narrative structure of one: Scene, shit happens/plot twist, conclusion. Unlike 99.9999999% of them.
→ More replies (1)8
u/oryiesis Nov 26 '20
Not the current timeline. They're only doing it because gitlab did it and wrote a nice blog post about how they did it lmao: https://about.gitlab.com/blog/2020/05/20/creating-a-dark-ui-for-gitlabs-web-ide/
4
u/tech6hutch Nov 26 '20
GitLab doesn’t have a dark theme for the whole UI yet tho (unless they do know and I didn’t know)
2
u/aquaticpolarbear Nov 26 '20
They do, it's under Settings > Preferences, but it's in alpha and a little bit buggy.
1
3
u/corsicanguppy Nov 26 '20
So recent hits from github are
banning master branch
dark mode
and that's it? I'm wading through a bucket of little improvements in gitlab readme docs every month, but the only thing I remember from the Competition is social justice and a CSS fix. That seems like it needs to be wrong.
10
u/brainplot Nov 26 '20
Dark Mode is not exactly a "CSS fix". It's harder than it may seem at first to make a website accessible in dark mode. Stackoverflow also took a while to implement dark mode because there are challenges involved. If it's a first-party feature it needs to adhere to specific requirements, it's not like an independent dev who makes an extension (don't get me wrong, mad respect for those who take the time to do it!).
3
u/IceSentry Nov 26 '20
Sure it's not easy, but people have been doing it for free, for years. I understand they have higher standards than an extension but it shouldn't take 7 years especially considering how much dev tooling has a dark mode.
4
u/brainplot Nov 26 '20
it shouldn't take 7 years especially considering how much dev tooling has a dark mode
Yes, that I agree with. I was just pointing out how it's not just a "CSS fix".
Besides, the GitHub app for Android (and I assume iOS too) does have a dark mode so it only makes sense for the website to have it as well, especially since I expect most developers to use GitHub mainly from their computer.1
15
u/klyonrad Nov 26 '20
I don't think you are paying attention to Github changes.
Notifications Revamp, UI changes, Github Actions.
Just shut off with your "anti social justice" shit. Besides
masterbranch has net not banned. And their contract with ICE is still ongoing.1
u/corsicanguppy Dec 04 '20
your "anti social justice" shit
Hmm. I know of no issue with mere social justice. But that was a few stops back on the route, and the bus driver seems to keep driving.
10
u/Tsuki_no_Mai Nov 26 '20
I'm wading through a bucket of little improvements in gitlab readme docs every month
And how many of those are big hits? Seriously, the heck is this comparison? You do realize that little improvements of Github don't quite make it here, right?
0
u/PC__LOAD__LETTER Nov 26 '20
It’s hosted git. It’s the wrong place to be adding le “sick features.” I don’t see any issues with this, other than not giving a damn about the light scheme.
1
u/corsicanguppy Dec 04 '20
Not saying they lack 'le syck' features. Git's git, after all, and stability is a feature. Just, seems a bit loud of promotion around the virtue signalling.
3
u/stonerbobo Nov 26 '20 edited Nov 26 '20
why is half the internet obsessed with dark mode like what the fuck??? it's cool and all but damn it's a tiny feature
16
u/Zak Nov 26 '20
Perhaps you should skim the thread you're commenting in and find out.
→ More replies (3)3
u/mushfiq_814 Nov 26 '20
Well if it's half the internet, is it really that tiny? Unless you mean tiny as in doesn't take that much resources to implement. In that case, I agree with you I guess?
3
u/vlmutolo Nov 26 '20
Because everything else is dark mode on my computer, and then when I switch to github, it’s blinding. And because GitHub is often a large part of my workflow, I am in large part blinded.
-3
0
u/doobi1 Nov 28 '20
because people like to look at screens in the dark?? is it that fucking hard to understand???
2
u/schneems Nov 26 '20
Do they still have the contract with ICE?
12
9
u/sysop073 Nov 26 '20
Does that have anything to do with dark mode?
0
u/schneems Nov 26 '20
Does working with human rights violators have anything to do with a UI change?
Well, if GitHub no longer works with them then the two would be totally unrelated. Unfortunately it seems, they’re connected by a common thread: GitHub.
4
u/TankorSmash Nov 26 '20
So no, not really then
1
u/schneems Nov 30 '20
So no, not really then
You've gotten ahead of yourself. If you remove GitHub: Then...there would be no connection.
GitHub can remove themselves anytime they don't want to be connected to human rights abuses. They simply choose to not do so.
I'm sorry this relationship between ICE and GitHub's UI makes you uncomfortable. Maybe consider asking GitHub to drop their ICE contract and then we can all go back to only focusing on their UI.
→ More replies (1)-4
u/VaginalMatrix Nov 26 '20
Obviously they do. Would they stop making money for some petty human rights concerns?
1
u/Techadelic Nov 26 '20
My professor always told me dark mode was bad for your eyes. Makes you strain more. Always wondered if that was true.
2
u/IceSentry Nov 26 '20
Some people have significant eye strain from it, some people have no eye strain from dark mode but have it from light mode. It's not constant for every humans unfortunately.
1
u/NaturallyAdorkable Nov 26 '20
RemindMe! 1 month
1
u/RemindMeBot Nov 26 '20 edited Nov 26 '20
I will be messaging you in 1 month on 2020-12-26 14:44:34 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
1
1
u/TheDevilsAdvokaat Nov 26 '20
Only recently came to unity and I was VERY happy about it.
Already had dark mode for VS, having it for unity too (for free) was very nice.
1
1
1
1
u/Richandler Nov 26 '20
The more an more dark mode ends up on everything the more and more I'm beginning to hate it. It's like when your parents started getting on Facebook. It was time to nope out.
1
1
1
u/NytronX Nov 27 '20
Lol, I wonder if it looks better than just using the Dark Reader browser extension.
Haven't seen white github in years.
1
u/Revelation_Now Nov 27 '20
What is it with all of these edgelords demanding 'dark mode' on everything. The colour palette sucks and makes text so difficult to read.
1
1
Nov 27 '20
Does anyone here with astigmatism have trouble reading dark backgrounds with light text?
I can't focus on the letters.
1
1
1
1
1
1
-3
0
-55
-3
-27
Nov 26 '20
Dumb waste of time
0
u/KryptosFR Nov 26 '20
Say that to people who have color blindness, need to work at night at home with their baby/kids sleeping in the same room, etc.
→ More replies (5)
0
-6
886
u/Planebagels1 Nov 26 '20
I use a GitHub dark theme extension the whole time