Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Studio: Change cursor color

I use the Cobalt editor theme in R Studio which I have slightly adjusted by changing the respective .cache.css file. The background color is dark (my choice) but the text cursor (mouse pointer) is dark as well so it is hard to see. Where or how can I change the the mouse pointer color to e.g. green in the .cache.css file?

like image 912
Tobi.g Avatar asked Oct 29 '25 20:10

Tobi.g


2 Answers

Using this issue on another tool, I added these lines to my cache.css file:

.ace_editor *, input.GNKRCKGCKS { cursor: -webkit-image-set(url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=') 1x, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC') 2x) 5 8, text; }
like image 197
Devin Avatar answered Oct 31 '25 11:10

Devin


Windows Solution

You can edit specific themes by going to 'C://Program Files/RStudio/resources/themes/your_theme_of_chocie'

Open the file, for example cobalt.rstheme with something like VS code

Paste the line as supplied by @Devin from above answer.

Save the file and re-open RStudio. While this is a .rstheme file, it is written in CSS.

like image 30
Mxblsdl Avatar answered Oct 31 '25 13:10

Mxblsdl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!