Skip to content

Conversation

@eth3lbert
Copy link
Contributor

@eth3lbert eth3lbert commented Mar 11, 2025

This adjusts the spinner color to follow the color mode, and ensures certain buttons' loading spinners remain dark, especially those with backgrounds that do not follow the color mode.

Before:
image
image

After:
image
image

Before:
image
image

After:
image
image

@eth3lbert eth3lbert added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Mar 11, 2025
@Turbo87
Copy link
Member

Turbo87 commented Mar 11, 2025

would it be possible to use the text color instead so that we don't have to override anything?

@eth3lbert
Copy link
Contributor Author

would it be possible to use the text color instead so that we don't have to override anything?

Yeah, I've thought of this before. However, for the background, it would be great if rgba(currentcolor, 0.2) were possible, but it's not supported. Maybe using a gray border color as the background and currentcolor as the color would be sufficient. I'll test it a bit.

@eth3lbert
Copy link
Contributor Author

Updated to use the currentcolor + grey-border background approach. For certain buttons with the dark class, they will use the specific background color as before.

@eth3lbert eth3lbert requested a review from Turbo87 March 11, 2025 12:58
Most spinners are either outside the button or inside a button whose
background changes accordingly with the color mode. However, there are
some buttons whose background color doesn't change with the color mode.
For those buttons that don't follow the color mode, we add a light theme
for them.
@Turbo87 Turbo87 enabled auto-merge March 14, 2025 08:38
@Turbo87 Turbo87 merged commit d287f22 into rust-lang:main Mar 14, 2025
9 of 10 checks passed
@eth3lbert eth3lbert deleted the indicator-color branch March 14, 2025 08:38
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.

2 participants