You are not logged in.
@ToZ
Thank you so much for this, this works great.
Strange that replacing the background would override the selection color.
Same issue occurs if you change side bar background color, with your response I added the ":selected" pseudo type" to that as well which worked.
This also may be needed if user changes file pane background color and now the side bar selection color is different then the file pane selection color they had to choose to get it back.
The following is the line I used to achieve this if anyone is interested
.thunar .sidebar .view:selected {background-color: blue}
obviously change “blue” to color desired
Thank you again for your help and all the help you have provided.
Offline
I am using Arch / hyprland w/ thunar recently updated to 4.20.0-2. and Materia-light theme.
I have noticed that thunar's standard-view selected item background color has changed to bright blue recently. I was trying to follow @ToZ's instructions using gtk inspector to set it but I failed. The following image shows to settings I have tried.
On the image the red line in the detailed list view is where the mouse was hovering which is not visible on the screen capture.
All my css seamed to work except:
.thunar .standard-view .view:selected {
background-color:green;
}
which has no apparent affect.
I have downgraded thunar to 4.18.11-3 which works as expected - I mean the selection color is normal Materia-light color, and the gtk.css code works as well.
Can anybody verify this behaviour, or am I doing something wrong?
Offline
Also on Arch. Its really odd that you are getting the blue colour. Do you have anything else in ~/.config/gtk-3.0/gtk.css?
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Try with the default (Adwaita) gtk/appearance theme to see if the colour changes:
xfconf-query -c xsettings -p /Net/ThemeName -s ""
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Try with the default (Adwaita) gtk/appearance theme to see if the colour changes:
xfconf-query -c xsettings -p /Net/ThemeName -s ""
Hey ToZ, thanks for your time.
I was thinking along the same lines. I have created a new user, installed xfce4 and tried the color change on a completely stock xfce environment.
Looks like the issue is still there.
After this I have also tried your suggestion on my account and I still have the blue selection color. Odd indeed...
Offline
Okay figured it out (I should have known because there is a recent thread about this). The View>Show file highlight setting, if enabled, overrides the gtk.css code.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
That has solved it. Thank you ToZ, I appreciate your help.
Offline
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 565.46 KiB (Peak: 582.74 KiB) ]