slint icon indicating copy to clipboard operation
slint copied to clipboard

bug: not able to set background to transparent when using skia for rendering

Open std-microblock opened this issue 1 year ago • 2 comments

If background: transparent; is applied and skia is used, the background will be rendered black.

I'm on Windows 11, x86_64, with Nvidia graphic cards.

std-microblock avatar Dec 09 '23 10:12 std-microblock

I can confirm this. This is a bug in the Direct3D Skia Renderer (the Slint side of it). As a workaround, you can use the skia-opengl instead of skia feature to activate the OpenGL renderer, where window transparency works.

tronical avatar Dec 11 '23 10:12 tronical

skia-opengl also can not work well in AMD graphics. When I had both an AMD core graphics card and an NVIDIA graphics card, running the program on an Nvidia graphics card didn't work too. It only worked when I blocked out the core graphics card.

Horbin-Magician avatar Aug 24 '24 16:08 Horbin-Magician