Skip to content

Implement cursor blinking in text editor #152

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

Merged
merged 5 commits into from
Nov 9, 2024

Conversation

tannal
Copy link
Contributor

@tannal tannal commented Oct 31, 2024

Implemented some kind of timer using ControlFlow::WaitUntil.
I believe the timer thing can be handled in a more general way, but I haven't figured it out yet.
blink.webm

@xorgy
Copy link
Member

xorgy commented Nov 7, 2024

And overall, remember to run cargo fmt on your code before committing it. It will fail CI if it is not formatted the way the machine wants.

@tannal tannal force-pushed the vello-editor-blink branch from ed532d2 to 1f8f726 Compare November 8, 2024 02:36
@tannal tannal force-pushed the vello-editor-blink branch from 1033e5e to 2659dc1 Compare November 8, 2024 02:58
Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not run this myself yet, but this will be good functionality to land. We could also point to #gpu > Rendering a blinking cursor

Copy link
Member

@xorgy xorgy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this as it is. Thank you for your contribution @tannal !

@xorgy xorgy added this pull request to the merge queue Nov 9, 2024
Merged via the queue into linebender:main with commit a35e00f Nov 9, 2024
20 checks passed
@tannal
Copy link
Contributor Author

tannal commented Nov 10, 2024

That's cool.
And thanks for all the feedback!

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 this pull request may close these issues.

3 participants