Skip to content
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

Make color mode switcher more perceptible #979

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

shaedrich
Copy link
Contributor

Fix #978

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 23, 2024
@SeanTAllen
Copy link
Member

I prefer the existing and don't find the icons to be any more "intuitive". I'd end up mousing over both of them. If we decide at sync to accept this change, this shouldn't be merged until PRs are open for patterns and the tutorial as well.

@SeanTAllen
Copy link
Member

build failure can be ignored. we need to update to be able to the non-insiders version when we do a build check for a PR from a forked repo.

@jemc
Copy link
Member

jemc commented Mar 26, 2024

We discussed on today's Pony sync call.

I agree that the current nondescript toggle is not clear, and that it's better to choose a clearer icon.

I think showing a moon or sun icon that switches is confusing, because it's not clear whether it's showing the current state or future state. I was saying it might it be better to show an icon which is sun and moon together, which doesn't change when you change the state.

So I just looked in the material icon set and I found an icon that shows a moon inside of sun called brightness_4. Are we able to use that icon inside this theme? If so, that would probably be ideal. Could you update this PR to use that icon for both states?

But please note that before we can merge this PR, we need to also have a corresponding PR in the pony-tutorial and pony-patterns repos.

shaedrich added a commit to shaedrich/pony-tutorial that referenced this pull request Mar 26, 2024
… to make the color mode switcher more perceptible

As discussed in ponylang/ponylang-website#979 (comment)

Co-authored-by: SeanTAllen <sean@seantallen.com>
shaedrich added a commit to shaedrich/pony-patterns that referenced this pull request Mar 26, 2024
… to make the color mode switcher more perceptible

As discussed in ponylang/ponylang-website#979 (comment)

Co-authored-by: SeanTAllen <sean@seantallen.com>
@shaedrich
Copy link
Contributor Author

shaedrich commented Mar 26, 2024

A text label would be nice, too (additionally to the tooltip), but I don't think, that's possible with mkdocs. So, I've changed the icon accordingly, and made the changes in pony-tutorial and pony-patterns respectively.

@SeanTAllen SeanTAllen merged commit dc9d54a into ponylang:main Mar 27, 2024
7 of 8 checks passed
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 27, 2024
@shaedrich shaedrich deleted the patch-1 branch March 27, 2024 08:52
@shaedrich
Copy link
Contributor Author

A text label would be nice, too (additionally to the tooltip), but I don't think, that's possible with mkdocs.

@SeanTAllen I just listened to your Sync and yeah, the state is already visible on the site, and therefore, a label would be somewhat redundant. So just forget what I said about the label 😅

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss during sync Should be discussed during an upcoming sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Color mode switcher
4 participants