wmww / gtk-layer-shell

A library to create panels and other desktop components for Wayland using the Layer Shell protocol
GNU General Public License v3.0
318 stars 16 forks source link

bug transparancy #117

Closed nda-cunh closed 2 years ago

nda-cunh commented 2 years ago

it is impossible to assign alpha values to gtk-layer-shell widgets. example:

create a window with rgba(250,0,0,1); will create a completely opaque window however if I put rgba(250,0,0,0); it will create a completely transparent window! This shows that layershell is compatible with transparency and that it is probably a bug.

There is also the fact that my compositor can't blur the transparent widget created by layershell. (But I think it's the same problem)

Translated with www.DeepL.com/Translator (free version)

ErikReider commented 2 years ago

I just set the windows background to rgba(0, 0, 0, 0,5) through CSS

nda-cunh commented 2 years ago

Ah yes... but normally the css is from 0 to 255 not 0.5 on widgets out of layershell but it doesn't matter, it works!

so there is still the problem with the fact that the composer doesn't put blur on transparent widgets when they are on layer shell

nda-cunh commented 2 years ago

Snapchat-509096971 with layer shell

Snapchat-1002030121 without layershell

ErikReider commented 2 years ago

Ah yes... but normally the css is from 0 to 255 not 0.5 on widgets out of layershell but it doesn't matter, it works!

The first 3 are R,G,B which can be from 0 to 255 while the last one stands for Alpha which goes from 0 to 1

[Mozilla CSS doc](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgba())

nda-cunh commented 2 years ago

okay I see so it's GtK who made a mistake so for the CSS I'll take it.

for the blur I have to ask wayfire or it comes from layershell?

ErikReider commented 2 years ago

I'm not familiar with the layer shell code so I don't know. Hopefully somebody else does :)

ammen99 commented 2 years ago

The blur comes from Wayfire. You probably have not set up all surfaces to be blurred, see https://github.com/WayfireWM/wayfire/issues/1399 for a similar issue and a solution which should work for you.

nda-cunh commented 2 years ago

thank, i close this :)