Change cursor color for themes with dark backgrounds

I like to use themes with dark backgrounds (in RStudio, I use Cobalt). However, the black cursors are basically impossible to see on top of the dark background. Has anyone been able to edit the cursor color? This will make my life with R so much better. Thanks!

I've tried following the instructions in this post but couldn't get it to work: