Thunar is no longer respecting theme highlight for selections

XFCE Thunar is no longer respecting my theme highlight for selections. In this new release Instead of using my theme highlight or accent (they are the same in my theme) it has chosen to use one of my button background colours and black or very dark text. Given my button backgrounds are very dark, this is not helpful.

This sounds similar to, but not the same as, an issue reported yesterday
Right-clicking item in XFCE Thunar turns it blank on certain themes after 2025-02-04 update

I suggest you start a new topic and post system data, names of themes that are showing this issue and a screenshot if possible

I FOUND A FIX. It is absolutely necessary that the theme define theme_selected_bg_color (previously I have never set this, I used theme_slected_bg (not with _color). Less obvious is WHY this fix is needed and why the treeview in Thunar main panel (which is an ExoTreeView) does not respect the settings for .view selected, which work in apparently all other circumstances

Manjaro XFCE default theme matcha-gtk-theme should have all needed CSS selectors

$ grep "theme_selected_bg_color" /usr/share/themes/Matcha-sea/gtk-3.0/gtk.css
@define-color theme_selected_bg_color #2eb398;

Create a CSS snippet file ~/.config/gtk-3.0/gtk.css and add this to change highlight color:

@define-color theme_selected_bg_color #2eb398;

Change the color code to match your preferred theme
and log out or reboot system to reload theme

4 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.