Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-12-12 21:39:08

fant
Member
Registered: 2020-10-07
Posts: 14

panel transparency not working when gtk.css is present

Hi,

I have a  ~/.config/gtk-3.0/gtk.css containing the following code to colour the workspace switcher (buttons):

#pager-4 button { background-color: #B35A57; }
#pager-4 button:checked { background-color: #4B7946; }
#pager-4 button:hover { background-color: #406398; }

looks pretty good. BUT, if this gtk.css exists transparency of the panel is not working anymore.

When I rename/delete the gtk.css transparency works fine again.

Do I need any additional entries in the gtk.css to make transparency work...

Thanks a lot

Offline

#2 2021-12-12 21:44:22

fant
Member
Registered: 2020-10-07
Posts: 14

Re: panel transparency not working when gtk.css is present

if the code gets deleted, thus an empty gtk.css exists, this behaviour is still present

Last edited by fant (2021-12-12 21:51:24)

Offline

#3 2021-12-13 12:09:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: panel transparency not working when gtk.css is present

That code shouldn't have any impact on the transparency of the panel. Have you tried restarting the panel:

xfce4-panel -r

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

#4 2021-12-13 20:16:48

fant
Member
Registered: 2020-10-07
Posts: 14

Re: panel transparency not working when gtk.css is present

yes, panel restarted several times
everytime I changed the gtk.css

Offline

#5 2021-12-13 20:54:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: panel transparency not working when gtk.css is present

Which distro and which version of Xfce are you using?

Can you run xfce4-panel in debug mode and post back the output?

xfce4-panel -q
PANEL_DEBUG=1 xfce4-panel

I can't replicate this issue on Arch Linux using Xfce 4.16,


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

#6 2021-12-14 20:33:35

fant
Member
Registered: 2020-10-07
Posts: 14

Re: panel transparency not working when gtk.css is present

ToZ,
thanks a lot for your efforts - highly appreciate :-)

I use debian 11 and xfce 4.16. The only thing what came in mind was, that I removed gnome completely and installed xfce (never regretted...;-) Proably I missed something...

But, the problem got solved by a behaviour which I would describe as a bit creepy...

I set the transparency to 0 (for enter and leave panel). Nothing happend = no transparancy.
Then I made a screenshot (shift+print) to cast a picture how it looks.
I selected an appropriate area, panel included of course. I got a terrible screen greasing (pointer and coordinates) on the panel.

Then, in some kind of "panic attack", I restarted the panel and now it works and looks fine as it should....

I promise, I had restarted the panel several times before...with no result.

Now I'm pretty happy with my deskop ;-)

Probably XFCE has some kind of self-healing power...

Offline

#7 2021-12-15 00:06:00

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: panel transparency not working when gtk.css is present

fant wrote:

I set the transparency to 0 (for enter and leave panel). Nothing happend = no transparancy.

Just wanted to say that changing background transparency is different in 4.16. The enter/leave opacity changes the visibility of both the background transparency and the icons. To change just the background, you should follow these instructions.


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

Board footer

Powered by FluxBB