Score:4

How can I change rubberband colour on Desktop?

br flag

(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

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.

Score:1
br flag

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

Iván Araolaza avatar
br flag
It finally worked, thank you!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.