waycrate / exwlshelleventloop

winit like binding for layershell and sessionlock
MIT License
33 stars 4 forks source link

Transparent Application is a Black Screen #50

Open sundaram123krishnan opened 2 weeks ago

sundaram123krishnan commented 2 weeks ago

So, in the counter example i had tried implementing styles for the application.

fn style(&self) -> theme::Application {
        theme::Application::custom(|theme: &Theme| iced::application::Appearance {
            background_color: iced::Color::TRANSPARENT,
            text_color: iced::Color::BLACK,
        })
    }

Instead, it displays a black screen transparent

Decodetalkers commented 2 weeks ago

Yes, the surface should be set as transparent first

Decodetalkers commented 2 weeks ago

I will solve it now

Decodetalkers commented 2 weeks ago

Emm.. failed.. seems hard..

Decodetalkers commented 2 weeks ago

https://github.com/waycrate/exwlshelleventloop/pull/51 I do not know why this happened... I think it should work..

Decodetalkers commented 2 weeks ago

image

origin iced also cannot transparent.. is that because of the wgpu dependence is break?

note, seems fixed in iced 0.13... then maybe we should wait for iced 0.13 to be publish

sundaram123krishnan commented 2 weeks ago

Yes, when building from master branch, it works fine!