Xfce Forum

Sub domains
 

You are not logged in.

#26 2024-07-15 00:31:17

advice1010
Member
Registered: 2023-02-19
Posts: 107

Re: Thunar background colors

@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

#27 2024-12-28 19:51:00

fv
Member
Registered: 2024-12-28
Posts: 4
LinuxFirefox 133.0

Re: Thunar background colors

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.
desktop.jpg

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

#28 2024-12-29 01:55:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 133.0

Re: Thunar background colors

Screenshot-2024-12-28-20-46-06.png

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

#29 2024-12-29 07:33:41

fv
Member
Registered: 2024-12-28
Posts: 4
LinuxFirefox 133.0

Re: Thunar background colors

ToZ wrote:

Screenshot-2024-12-28-20-46-06.png

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?

No, I do not have a gtk.css.

Offline

#30 2024-12-29 10:52:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 133.0

Re: Thunar background colors

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

#31 2024-12-29 13:16:55

fv
Member
Registered: 2024-12-28
Posts: 4
LinuxFirefox 133.0

Re: Thunar background colors

ToZ wrote:

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.

swappy-20241229-133901-2.png

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

#32 2024-12-29 15:22:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 133.0

Re: Thunar background colors

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

#33 2024-12-29 15:59:52

fv
Member
Registered: 2024-12-28
Posts: 4
LinuxFirefox 133.0

Re: Thunar background colors

That has solved it. Thank you ToZ, I appreciate your help.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 565.46 KiB (Peak: 582.74 KiB) ]