Open TheTechRobo opened 3 years ago
I suppose we'll have to see if @daattali wants to support the new dark mode or not. This project was started with the goal of reverting the look of github back to how it was prior to June 23, 2020. Dark mode did not exist at that time so supporting dark mode would be a scope expansion.
These round UI elements feel so microsofty, not the goodold githuby :)
@zekefarwell Good point
@szepeviktor Also good point
Thanks for reporting @TheTechRobo and thanks for chiming in @zekefarwell
It's a good point that dark mode didn't exist before so technically it is a scope expansion, but I'm not at all opposed to trying to support dark mode as well since it will only involve css colour changes. I haven't had a chance yet to test out dark mode myself, I hope that github simply adds some CSS class to a top level element, which would make it fairly simple to support dark mode.
Here's something that may be of use : https://github.community/t/an-easy-api-to-use-to-detect-current-dark-white-mode/149406
Looks like it can be simpler than that, the html node has an attribute data-color-mode="dark"
@daattali Please consider that data-color-mode="auto"
is also dark when the browser/OS is set to dark mode.
In @primer/css/core
GitHub has @media (prefers-color-scheme:light){ ... }
Ah very good point thank you!
On Sat., Dec. 12, 2020, 17:53 Viktor Szépe, notifications@github.com wrote:
In @primer/css/core https://github.githubassets.com/assets/frameworks-color-modes-88d9d48f19c365bc761aa9de492cc616.css GitHub has @media (prefers-color-scheme:light){ ... }
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/daattali/oldschool-github-extension/issues/39#issuecomment-743916472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHIQFHPG4AWOLIHHJA6NJ3SUPX43ANCNFSM4UTVS6MQ .
Debugged, and this is due to old school github.