Skip to content

Support dark mode #3585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Support dark mode #3585

wants to merge 2 commits into from

Conversation

wyhaya
Copy link

@wyhaya wyhaya commented May 5, 2021

Preview:

567.mp4

Related: #3489

@rust-highfive
Copy link

r? @carols10cents

(rust-highfive has picked a reviewer for you, use r? to override)

@Turbo87
Copy link
Member

Turbo87 commented May 10, 2021

unfortunately such large scale changes to the design are currently considered problematic by the webpresence subteam 😞

@Turbo87 Turbo87 added A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works labels May 10, 2021
@ghost
Copy link

ghost commented May 20, 2021

Can you explain what's problematic about this change? It's a big accessibility win. I never use crates.io because it doesn't support dark mode. What's needed to move this forward?

@Turbo87
Copy link
Member

Turbo87 commented May 21, 2021

we've discussed this PR in the weekly crates.io team meeting today and we're generally not against implementing a dark mode and we would like to move this forward. we still need to figure out a few details though and we would like to hide this behind some kind of feature flag for now. once we have a more detailed plan on how we want to approach this I'll let you know.

@bors
Copy link
Contributor

bors commented Jun 8, 2021

☔ The latest upstream changes (presumably #3681) made this pull request unmergeable. Please resolve the merge conflicts.

@silvioprog
Copy link

The latest upstream changes (presumably #3681) made this pull request unmergeable. Please resolve the merge conflicts.

Ping @wyhaya

@bors
Copy link
Contributor

bors commented Sep 4, 2021

☔ The latest upstream changes (presumably #3878) made this pull request unmergeable. Please resolve the merge conflicts.

bors added a commit that referenced this pull request Dec 31, 2021
Replace "Toggle Design" button with new `/settings/appearance` route

Just like the "Toggle Design" button before, this route is only visible in development mode, or to be more precise: the link to this route is only visible in development mode, so that we can test this out in production too.

This should be seen as a first step towards implementing a "dark color scheme" mode (see #3585), roughly inspired by how GitHub has implemented it in their user settings.

<img width="1000" alt="Bildschirmfoto 2021-12-26 um 19 34 12" src="https://user-images.githubusercontent.com/141300/147417178-16083d7d-6f57-47e0-b980-820ee5af1acf.png">
@Patrick-Poitras
Copy link

@Turbo87 With #4368 being merged in, is this PR still blocked from proceeding, or what is the status on the implementation of dark mode?

@Turbo87
Copy link
Member

Turbo87 commented Jan 19, 2022

the short version is: we're working on it 😉

@videah
Copy link

videah commented Jan 20, 2023

Is there any progress being made towards making this a reality? I'm finding that it isn't possible for me to use crates.io for long periods of time without getting searing headaches 🥲

@carols10cents
Copy link
Member

carols10cents commented Jan 20, 2023

If there was any progress, it would be posted to this issue. We'd love if you sent in PRs! I see this is a PR, not an issue. While you're waiting for us to have the time and bandwidth to move this forward, browser extensions like Stylish will let you apply CSS to any webpage and try this out.

@wooster0
Copy link
Contributor

And as always, Dark Reader.

googlebleh added a commit to googlebleh/crates-io-dark that referenced this pull request Jun 27, 2023
Unfortunately, JonathanHelianthicusDoe's PR has closed. Other relevant
links:
- rust-lang/crates.io#4348
- rust-lang/crates.io#3585
@jdno jdno deleted the branch rust-lang:master July 24, 2023 08:57
@jdno jdno closed this Jul 24, 2023
@fenhl
Copy link

fenhl commented Jul 24, 2023

Looks like deleting the target branch automatically closed this, so it will have to be reopened against main.

@jdno
Copy link
Member

jdno commented Jul 24, 2023

Huh, that was definitely not supposed to happen. The target branch should've been updated without the pull request getting closed. 🤨

But I also can't find the fork from which the PR was created, so maybe that's what why this PR got closed instead of updated.

@fenhl
Copy link

fenhl commented Jul 24, 2023

Hopefully we can avoid losing track of this. @wyhaya would you be willing to recreate the branch?

@wyhaya
Copy link
Author

wyhaya commented Jul 24, 2023

Hi @fenhl

I inadvertently deleted the fork of this repository, and unfortunately I can't recreate the branch. The best I can think of is to copy the code line by line from this PR.

This PR submission is more than two years old and is probably no longer appropriate for crates.io. The CSS code in it is poorly written and I think a rewrite might be a good idea.

@msrd0
Copy link

msrd0 commented Jul 24, 2023

It is still possible to recover the code using the github cli:

gh pr checkout 3585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.