You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bounty: Use SVG's for common cursors (Custom cursor functionality) #630
With Cap, you can record using "Custom cursor capture in Studio Mode". This is toggleable via the "Experimental" tab in settings.
Right now, it directly captures the cursor data, stores it, and then we use this cursor during the rendering process later.
The problem is that the cursor isn't the greatest quality. During zoom segments, or if the cursor is made to be a lot larger, you can see the issue with the quality.
We need to make it so that if the cursor is of a common type (e.g. I-beam, Crosshair, Pointing hand, etc), it uses the SVG (higher quality) version of this cursor, rather than the one we stored. If a higher quality version isn't available, it'll default back to the original.
The cursor SVG's would be stored and bundled with the app.
Got this working with some of the common cursor types. During render, I detect the cursor type and store it alongside the PNG. If an SVG is defined for that cursor, it's used. Falls back to the platform’s default cursor otherwise.
Is there a preferred SVG style or source you'd recommend for standard cursors like the arrow?
Thanks! @richiemcilroy
Still working on running on windows, spinning up a usable windows vm emulator has been its own adventure. Until then, I added a video of it running on macos. It falls back to the native (resize) cursor at one point, then switches back to the custom SVG arrows (courtesy of svgrepo which are a bit janky, but served well at the time).
Activity
linear commentedon Jun 10, 2025
CAP-374 Bounty: Use SVG's for common cursors (Custom cursor functionality)
richiemcilroy commentedon Jun 10, 2025
/bounty $100
algora-pbc commentedon Jun 10, 2025
💎 $100 bounty • Cap
Steps to solve:
/attempt #630with your implementation plan/claim #630in the PR body to claim the bounty❗ Important guidelines:
Thank you for contributing to CapSoftware/Cap!
yarosz commentedon Jun 11, 2025
/attempt #630
Does the recorded video need to testing in both OS or would macOS be sufficient?
richiemcilroy commentedon Jun 11, 2025
Hey @yarosz, as long as I can test it on my end for Windows then that's fine
rajj28 commentedon Jun 15, 2025
/attempt #630
sethryanrollins commentedon Jun 24, 2025
/attempt #630
Got this working with some of the common cursor types. During render, I detect the cursor type and store it alongside the PNG. If an SVG is defined for that cursor, it's used. Falls back to the platform’s default cursor otherwise.
Is there a preferred SVG style or source you'd recommend for standard cursors like the arrow?
richiemcilroy commentedon Jun 25, 2025
awesome @Sethrollinsbah! Here's a link to an OSS cursor library:
https://github.com/ful1e5/apple_cursor
sethryanrollins commentedon Jun 25, 2025
Thanks! @richiemcilroy
Still working on running on windows, spinning up a usable windows vm emulator has been its own adventure. Until then, I added a video of it running on macos. It falls back to the native (resize) cursor at one point, then switches back to the custom SVG arrows (courtesy of svgrepo which are a bit janky, but served well at the time).
cap-macos-screenshare.mp4
NalinDalal commentedon Jul 4, 2025
/attempt #630
MAVRICK-1 commentedon Jul 8, 2025
/attempt #630
geeky33 commentedon Jul 14, 2025
/attempt #722
ameer2468 commentedon Jul 22, 2025
Hi everyone, i extracted some icons from Windows. Can provide more if needed.
windows-icons.zip
Use SVGs for common cursors (#722)
algora-pbc commentedon Aug 4, 2025
🎉 The pull request of @NalinDalal has been merged. The bounty can be rewarded here
cc @richiemcilroy