Add different color for unfocused selected editable text#23947
Add different color for unfocused selected editable text#23947alice-i-cecile merged 3 commits intobevyengine:mainfrom
Conversation
| Self { | ||
| color: RED.into(), | ||
| selection_color: Color::from(GREEN), | ||
| unfocused_selection_color: Color::from(BLUE), |
There was a problem hiding this comment.
The defaults don't matter too much here, but the blue is a bit too prominent, they should be chosen to suggest which is the focused input. Maybe just same as the selection color but with 0.5 alpha or something.
There was a problem hiding this comment.
I think we should try and pick decent defaults for all of these colors. I'll make a follow-up once this is in.
jordanhalase
left a comment
There was a problem hiding this comment.
Also, could this be invisible rather than a lighter accent color? For HTML inputs the selection turns invisible out of focus by default, and I think more people will expect it that way unless they are writing something like a code editor where they expect to still see their highlighting when clicked off.
I do not feel very strongly about this, but I imagine users would not prefer to see highlighting retained when clicking between many small inconsequential text/number inputs, and to reserve that behavior for larger more "important" text inputs.
Objective
Solution
unfocused_selection_color: ColortoTextCursorStyleTesting
cargo run --example multiple_text_inputscargo run --example feathers_gallery --features="experimental_bevy_feathers"