Fix and Polish Feathers Toggle Switch#23830
Merged
alice-i-cecile merged 12 commits intobevyengine:mainfrom Apr 17, 2026
Merged
Conversation
Contributor
Author
|
I added quite a few style tokens this time around. Please let me know if any doc comments don't match the token variable name or token string name. |
| /// Switch background around the switch (disabled) | ||
| pub const SWITCH_BG_DISABLED: ThemeToken = ThemeToken::new_static("feathers.switch.bg.disabled"); | ||
| /// Switch background around the checkmark | ||
| /// Switch background around the switch (checked) |
alice-i-cecile
approved these changes
Apr 16, 2026
Member
alice-i-cecile
left a comment
There was a problem hiding this comment.
Good! Surprisingly straightforward. I like the new styles too.
viridia
reviewed
Apr 16, 2026
viridia
approved these changes
Apr 16, 2026
Atlas16A
approved these changes
Apr 16, 2026
auto-merge was automatically disabled
April 17, 2026 01:59
Head branch was pushed to by a user without write access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
This is a continuation of #23820 for toggle switches to fix their clicking behavior and add more style tokens. Again, adding the
ActivateOnPresscomponent will change its state instantly on mouse-press rather than mouse-release.Styling is also changed for visibility and disambiguation.
Showcase
Before
After
(Not pictured: new intermediate styling for mouse press)