Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-08 14:58:10

mustbeit
Member
Registered: 2024-08-05
Posts: 6

Thunar theme in tree view, set a background color for selected folder

Hello,

Running Manjaro XFCE latest.
Apperance>Style=Matcha-dark-aliz

Open Thunar, see if you have a tree view on the left pane.
Select a folder.
This selected folder is not highlighted with background color.
See https://gitlab.xfce.org/xfce/thunar/-/issues/1404

How to add background color to the selected folder in tree view?

Thanks

Offline

#2 2024-08-08 21:28:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,417

Re: Thunar theme in tree view, set a background color for selected folder

Add:

.thunar .sidebar .view  *:selected { background-color: #f0544c; color: black }

...to ~/.config/gtk3.0/gtk.css (create the file if it doesn't exist).

Also open a ticket with the theme maker to consider making this change directly to the theme.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-08-09 05:08:03

mustbeit
Member
Registered: 2024-08-05
Posts: 6

Re: Thunar theme in tree view, set a background color for selected folder

Super.
Any way to apply the theme without logging out?

Offline

#4 2024-08-09 09:50:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,417

Re: Thunar theme in tree view, set a background color for selected folder

In this case, you can just quit thunar and restart it:

thunar -q

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-08-09 10:52:33

mustbeit
Member
Registered: 2024-08-05
Posts: 6

Re: Thunar theme in tree view, set a background color for selected folder

In case I change theme(e.g. matcha-dark-aliz to matcha-dark-sea), is there a way to reference/bases colors, something as such:

.thunar .sidebar .view  *:selected { background-color: baseBackgroundColor; color: baseFontColor; }
.thunar .standard-view .view *:hover{ background-color: baseBackgroundColor; }

Any recommanded URL for learning to theme xfce?

Offline

#6 2024-08-09 12:55:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,417

Re: Thunar theme in tree view, set a background color for selected folder

mustbeit wrote:

In case I change theme(e.g. matcha-dark-aliz to matcha-dark-sea), is there a way to reference/bases colors, something as such:

.thunar .sidebar .view  *:selected { background-color: baseBackgroundColor; color: baseFontColor; }
.thunar .standard-view .view *:hover{ background-color: baseBackgroundColor; }

Yes. At the bottom of the the default matcha-dark-aliz's gtk-dark.css file it "@define-color"s the color codes that are being used. (also https://github.com/vinceliuice/Matcha-g … .css#L9962. In this case, you could use "@theme_selected_bg_color".

Any recommanded URL for learning to theme xfce?

Search these forums as there is a lot of information already documented here. Also, read through this post as I've documented what resources exist and provide a bit of a walkthrough on how to find the css elements/styles.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 548.22 KiB (Peak: 549.06 KiB) ]