Skip to content

Set mouse cursor style for links in message content #297

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

Open
gnprice opened this issue Sep 2, 2023 · 0 comments
Open

Set mouse cursor style for links in message content #297

gnprice opened this issue Sep 2, 2023 · 0 comments
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents
Milestone

Comments

@gnprice
Copy link
Member

gnprice commented Sep 2, 2023

When hovering on a link with a pointer capable of hover, one expects the style of the cursor to change. This isn't possible on a typical mobile device, so most users will never see it, but it'd be a neat small bit of polish to get it right anyway.

For a widget that's clickable, one takes care of this by wrapping it in MouseRegion(cursor: SystemMouseCursors.click, …) (docs: MouseCursor, SystemMouseCursors.click), as @sirpengi demonstrated at #287 (comment) .

For the links in our message content, it'll be more subtle, as discussed at #287 (comment) . But I think we can do it by setting TextSpan.mouseCursor.

@gnprice gnprice added the a-content Parsing and rendering Zulip HTML content, notably message contents label Sep 2, 2023
@gnprice gnprice added this to the Post-launch milestone Sep 2, 2023
@gnprice gnprice modified the milestones: M6: Post-launch, M7: Future Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents
Projects
Status: No status
Development

No branches or pull requests

1 participant