Skip to content

Increase the translucency of hidden files icons

Version information

  • Thunar 4.18.8
  • Linux Mint Xfce 22.1 (Xia) (Kernel : Linux 6.8.0-55-generic)
  • Mint-L-Dark-Blue theme

Steps to reproduce

  1. Open Thunar.
  2. Go to a folder having a hidden folder within it
  3. View > Show hidden files (Ctrl+H)

Current behavior

The hidden folder icon displays as regular ones.

Expected outcome

The hidden folders icon should not be completely opaque. In Microsoft Windows, shown hidden folders are dimed. In linux, I guess an attempt of doing the same is implemented in thunar-icon-renderer.c as I can see (at line 605 at time of writing) :

      else if (thunar_file_is_hidden (icon_renderer->file))
        {
          /* 75% translucent for hidden files */
          alpha = 0.75;
        }

But it's obviously not working. I have been looking for a workaround with the gtk-3.0 theme CSS for a while, without finding the proper CSS selector (and it would have certainly be a bad practice).

EDIT

Well, after a cup of tea, I realise there IS a slight visual difference and my post becomes nearly irrelevant. I leave you the choice of closing it or actually still consider that it might unveils the fact that the 75% should be customisable. Indeed, for my specific dark theme, it can hardly be seen. I am probably not an isolated case.

I agree it's half an issue (if considering we have to lower the 75%) and half an improvement suggestion (if considering to allow that to be set in preferences or elsewhere).

Regards

Edited by Romadelf