Caja and GTK themes - problem

Whenever I try a theme in MATE I start by checking whether Caja displays correctly. As it turns out, there a very few light themes which play well with Caja. When you have Caja divided into two panes and click a file or folder to mark it, then click an item in the other pane, the previous item is invisible - the theme displays text in white on white background:

Only a few light themes do not cause such a behavior (e.g. Ambiant-MATE). It does not happen with dark themes, as they display text on a dark background.

Now, where do I look in the theme files to change the text color of a marked but unfocused item in Caja?
Any suggestions will be much appreciated.

You can change some GTK properties using css and GTK Inspector. See:

For example, with this CSS:

.caja-notebook .view:not(:focus)
{
color:red;
}

.caja-notebook .view:focus
{
color:blue;
}

you get:

1 Like

Perfect! Thanks a lot!

1 Like