Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-03-25 09:36:23

mega_kavun
Member
Registered: 2023-03-25
Posts: 5

[solved] xfdesktop4 styling issuesses

I installed xfdesktop4!!! And I have some questions:


1. How to make desktop icon fonts bold using ~/.config/gtk-3.0/gtk.css ?

I tried the following code

XfdesktopIconView.view .label, XfdesktopIconView.view .label text {
    /* background: red; */
    font-weight: bold !important;
}

But it doesn't seem to woork sad


2. Is there any way I can remove background entirely ?

Not just set it to black or any other colour, I want it to be transparent and show programs running underneath it. Is this possible?

Last edited by mega_kavun (2023-04-01 13:44:43)

Offline

#2 2023-03-25 11:21:25

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

Re: [solved] xfdesktop4 styling issuesses

Hello and welcome.

Which distro and version of Xfce are you running? Assuming a recent version...

mega_kavun wrote:
1. How to make desktop icon fonts bold using ~/.config/gtk-3.0/gtk.css ?

I tried the following code

XfdesktopIconView.view .label, XfdesktopIconView.view .label text {
    /* background: red; */
    font-weight: bold !important;
}

But it doesn't seem to woork sad

Try:

XfdesktopIconView.view { font-weight: bold }

For more info, see: https://forum.xfce.org/viewtopic.php?pid=54115#p54115

2. Is there any way I can remove background entirely ?

Not just set it to black or any other colour, I want it to be transparent and show programs running underneath it. Is this possible?

The desktop should be painted on the root window and by design, there shouldn't be anything running underneath - it will always be the lowest layer of the stack. Can you explain why you think there are programs running underneath?


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 2023-03-25 15:30:49

mega_kavun
Member
Registered: 2023-03-25
Posts: 5

Re: [solved] xfdesktop4 styling issuesses

Hello, I'm using xfdesktop4 4.16 running in Pantheon desktop environment (WM: Gala 7.0.1)


ToZ wrote:

Try:

XfdesktopIconView.view { font-weight: bold }

For more info, see: https://forum.xfce.org/viewtopic.php?pid=54115#p54115

Thanks, it worked!


ToZ wrote:

The desktop should be painted on the root window and by design, there shouldn't be anything running underneath - it will always be the lowest layer of the stack. Can you explain why you think there are programs running underneath?

This is because Gala draws its desktop (which, essentially, is just wallpaper) first. The idea is to overlay xfdesktop over this desktop to get just the desktop icons without installing the full XFCE environment.

Offline

#4 2023-03-25 17:34:12

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

Re: [solved] xfdesktop4 styling issuesses

mega_kavun wrote:

This is because Gala draws its desktop (which, essentially, is just wallpaper) first. The idea is to overlay xfdesktop over this desktop to get just the desktop icons without installing the full XFCE environment.

What happens if you create a fully transparent png wallpaper file (using gimp you can create a new image and set the backround to transparent) and use that? Would that work?


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 2023-03-25 19:00:03

mega_kavun
Member
Registered: 2023-03-25
Posts: 5

Re: [solved] xfdesktop4 styling issuesses

ToZ wrote:
mega_kavun wrote:

This is because Gala draws its desktop (which, essentially, is just wallpaper) first. The idea is to overlay xfdesktop over this desktop to get just the desktop icons without installing the full XFCE environment.

What happens if you create a fully transparent png wallpaper file (using gimp you can create a new image and set the backround to transparent) and use that? Would that work?

Not really, it just blends it with the solid color. I also tried to play around with changing colour's alpha channel, but it didn't work as well (it just ignores it and uses 6-digit HEX instead).

Offline

#6 2023-03-25 20:45:30

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

Re: [solved] xfdesktop4 styling issuesses

I don't think its possible. Interesting related discussion here.


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

#7 2023-04-01 02:56:59

mega_kavun
Member
Registered: 2023-03-25
Posts: 5

Re: [solved] xfdesktop4 styling issuesses

Thanks! I "solved" it by using a workaround script that copies Gala wallpaper and sets it as xfdesktop wallpaper every time it changed.

The last question: is there any way I can add "safe zones"/margins for all the desktop icons?

picture

It seems there is no way to do this using gtk styling, but I'm not sure.

Last edited by mega_kavun (2023-04-01 04:07:53)

Offline

#8 2023-04-01 11:17:31

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

Re: [solved] xfdesktop4 styling issuesses

Not that I'm aware of, no.


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

#9 2023-04-01 13:44:28

mega_kavun
Member
Registered: 2023-03-25
Posts: 5

Re: [solved] xfdesktop4 styling issuesses

Okay, thanks for answers

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, 8 queries executed - Memory usage: 556.88 KiB (Peak: 573.72 KiB) ]