oldschool-github-extension icon indicating copy to clipboard operation
oldschool-github-extension copied to clipboard

[BUG] Some buttons are WHITE in new dark mode

Open TheTechRobo opened this issue 3 years ago • 9 comments

image

image

Debugged, and this is due to old school github.

TheTechRobo avatar Dec 09 '20 15:12 TheTechRobo

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.

zekefarwell avatar Dec 09 '20 17:12 zekefarwell

These round UI elements feel so microsofty, not the goodold githuby :)

szepeviktor avatar Dec 09 '20 17:12 szepeviktor

@zekefarwell Good point

@szepeviktor Also good point

TheTechRobo avatar Dec 09 '20 19:12 TheTechRobo

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.

daattali avatar Dec 09 '20 22:12 daattali

Here's something that may be of use : https://github.community/t/an-easy-api-to-use-to-detect-current-dark-white-mode/149406

TheTechRobo avatar Dec 12 '20 18:12 TheTechRobo

Looks like it can be simpler than that, the html node has an attribute data-color-mode="dark"

daattali avatar Dec 12 '20 22:12 daattali

@daattali Please consider that data-color-mode="auto" is also dark when the browser/OS is set to dark mode.

szepeviktor avatar Dec 12 '20 22:12 szepeviktor

In @primer/css/core GitHub has @media (prefers-color-scheme:light){ ... }

szepeviktor avatar Dec 12 '20 22:12 szepeviktor

Ah very good point thank you!

On Sat., Dec. 12, 2020, 17:53 Viktor Szépe, [email protected] 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 .

daattali avatar Dec 12 '20 23:12 daattali