Ubuntu – Change the opacity of a cut selection (nemo.css)

ambiancegtknemothemes

I am trying to find what I need to edit in a GTK theme (specifically Ambiance) to change the opacity of a cut file. A selected file is orange and when I cut it, it is a little opaque – I'd like it to be more transparent, so that it is easily distinguishable.

I've played around with the /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css but I haven't seen any difference.

Edit: I've created a nemo.css file inside the apps folder, properly imported it at gtk-main.css, but I can not find the variable I need to change.

Best Answer

A workaround would be to create a small code inside theme folder exactly at:

sudo vim /usr/share/themes/Ambiance/gtk-3.0/apps/nemo.css

note: change vim with your favourite text editor

.nautilus-desktop.nautilus-canvas-item:selected {
color: @theme_selected_fg_color;
background-image: none;
background:#778196;
} 


Now we should give gtk-main a path to our file ,open the file at

sudo vim /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css

add to the file

@import url("apps/nemo.css");

Save & close it.Reboot. That's it, done!