Skip to content

Bounty: Use SVG's for common cursors (Custom cursor functionality) #630

Closed

Description

@richiemcilroy

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.

This needs to work for macOS and Windows.

Activity

  1. added
    Desktop
    on Jun 10, 2025
  2. richiemcilroy commented on Jun 10, 2025

    @richiemcilroy
    MemberAuthor

    /bounty $100

  3. algora-pbc commented on Jun 10, 2025

    @algora-pbc

    💎 $100 bounty • Cap

    Steps to solve:

    1. Start working: Comment /attempt #630 with your implementation plan
    2. Submit work: Create a pull request including /claim #630 in the PR body to claim the bounty
    3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

    ❗ Important guidelines:

    • To claim a bounty, you need to provide a short demo video of your changes in your pull request
    • If anything is unclear, ask for clarification before starting as this will help avoid potential rework
    • Low quality AI PRs will not receive review and will be closed
    • Do not ask to be assigned unless you've contributed before

    Thank you for contributing to CapSoftware/Cap!

    Attempt Started (UTC) Solution Actions
    🟢 @NalinDalal Jul 04, 2025, 06:56:43 PM #722 Reward
    🟢 @MAVRICK-1 Jul 08, 2025, 01:29:23 PM WIP
    🟢 @yarosz Jun 11, 2025, 02:20:09 AM WIP
    🟢 @rajj28 Jun 15, 2025, 10:15:00 AM WIP
    🟢 @Sethrollinsbah Jun 24, 2025, 06:19:46 PM WIP
  4. yarosz commented on Jun 11, 2025

    @yarosz

    /attempt #630

    This needs to work for macOS and Windows.

    Does the recorded video need to testing in both OS or would macOS be sufficient?

  5. richiemcilroy commented on Jun 11, 2025

    @richiemcilroy
    MemberAuthor

    Hey @yarosz, as long as I can test it on my end for Windows then that's fine

  6. rajj28 commented on Jun 15, 2025

    @rajj28

    /attempt #630

  7. sethryanrollins commented on Jun 24, 2025

    @sethryanrollins

    /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?

  8. richiemcilroy commented on Jun 25, 2025

    @richiemcilroy
    MemberAuthor

    awesome @Sethrollinsbah! Here's a link to an OSS cursor library:

    https://github.com/ful1e5/apple_cursor

  9. sethryanrollins commented on Jun 25, 2025

    @sethryanrollins

    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
  10. NalinDalal commented on Jul 4, 2025

    @NalinDalal
    Contributor

    /attempt #630

  11. MAVRICK-1 commented on Jul 8, 2025

    @MAVRICK-1

    /attempt #630

  12. geeky33 commented on Jul 14, 2025

    @geeky33

    /attempt #722

  13. ameer2468 commented on Jul 22, 2025

    @ameer2468
    Contributor

    Hi everyone, i extracted some icons from Windows. Can provide more if needed.

    windows-icons.zip

  14. added a commit that references this issue on Aug 4, 2025
  15. algora-pbc commented on Aug 4, 2025

    @algora-pbc

    🎉 The pull request of @NalinDalal has been merged. The bounty can be rewarded here

    cc @richiemcilroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

$100Desktop💎 Bounty

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions