egui icon indicating copy to clipboard operation
egui copied to clipboard

Selection Stroke Color is the same color for the cursor for the text box.

Open pepperoni42069 opened this issue 3 years ago • 2 comments

ui.visuals_mut().selection.stroke.color is the same color for the text edit cursor, could you make it so we can change the color of the selection stroke color without changing the text edit cursor color. If you could just tell me where in the code the text edit cursor code is i might be able to do it myself, but im new to rust. So can you add this

pepperoni42069 avatar Jun 17 '22 11:06 pepperoni42069

image image This is what im talking about

pepperoni42069 avatar Jun 17 '22 11:06 pepperoni42069

I think adding a separate cursor: Stroke to struct Visuals makes sense. That would also replace text_cursor_width (would be part of the Stroke).

The code is in paint_cursor_end in egui/src/widgets/text_edit/builder.rs

emilk avatar Jul 21 '22 18:07 emilk