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

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

Closed
pepperoni42069 opened this issue Jun 17, 2022 · 2 comments · Fixed by #3181
Closed

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

pepperoni42069 opened this issue Jun 17, 2022 · 2 comments · Fixed by #3181

Comments

@pepperoni42069
Copy link

pepperoni42069 commented Jun 17, 2022

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
Copy link
Author

pepperoni42069 commented Jun 17, 2022

image
image
This is what im talking about

@emilk
Copy link
Owner

emilk commented Jul 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants