Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I change rubberband colour on Desktop?

(Sorry for any bad English)

Lately, I have been customizing my system (Ubuntu 21.10 themed with Yaru Dark and Zsh as shell with powerlevel10k theme). I set it all up, including a cool colour palette. Here is my problem: when I left click on the Desktop and drag, the rubberband generated appears orange, the default colour, which broke the aesthetics of the palette I choose.

1

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What I want to do is change the colour of the rubberband

At first, I only managed to figure out how to change the colour of the cursor highlighting when pressing Ctrl key, and it didn’t even work for me!

Then I tried editing

/usr/share/themes/Yaru-dark/gtk-3.0/gtk.css

and also

/usr/share/themes/Yaru-dark/gtk-4.0/gtk.css.

But both files only had one line:

@import url("resource:///com/ubuntu/themes/Yaru-dark/3.0/gtk.css");.

I tried by adding the code:

XfdesktopIconView.view .rubberband, .content-view rubberband, treeview.view rubberband, flowbox rubberband,
rubberband,
.rubberband {
  background-color: blue;
}

But for my bad luck, nothing happened…

If you know how to change the colour, let me know.

>Solution :

Add below lines in the file /usr/share/themes/Yaru-dark/gtk-3.20/gtk.css for testing purpose. Once it is satisfactory create a local theme so that, the changes will not be overwritten when packages are updated.

.view:selected:focus, .view:selected, .view text:selected:focus {
  background-color: orange; }

Change the color "orange" with any other color you wish in above line.

Tested in Ubuntu 21.10 with "Yaru-dark" theme.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading