Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-04-08 13:32:01

AkantorDemon
Member
Registered: 2020-04-08
Posts: 5

Thunar background image help (SOLVED)

Hi all i have been trying to add a background image to thunar and successful did it but i have a problem, the image also appears on the icon labels, this is the code im using:

.thunar .standard-view .view {
          background-image: -gtk-scaled(url("backimage.jpg"), url("backimage@2.jpg"));
          background-repeat: no-repeat;
          background-position: bottom right;
          background-size: cover;
}

and as you can see in this screenshot it replicates the image on the text labels for every file and folder:

HYGS3by.png

how can i fix this so that the image doesn't appear on the text label of folder and items?

Last edited by AkantorDemon (2020-04-08 21:19:29)

Offline

#2 2020-04-08 20:17:23

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

Re: Thunar background image help (SOLVED)

Hello and welcome.

It gets unclear what happens below the .view level as only "widget' is defined. However, if you add the following two lines after your snippet above:

.thunar .standard-view .view * { background-image: none; }
.thunar .standard-view .view * { background: transparent; color: white; }

...it seems to work. The first line sets the image to none and the second to transparent with white foreground.


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 2020-04-08 21:18:24

AkantorDemon
Member
Registered: 2020-04-08
Posts: 5

Re: Thunar background image help (SOLVED)

Thank you, that did exactly what i was looking for.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 8 queries executed - Memory usage: 535.48 KiB (Peak: 536.32 KiB) ]