WebView icon indicating copy to clipboard operation
WebView copied to clipboard

Background Transparent

Open mauisoftware opened this issue 1 year ago • 5 comments

Can the browser background be made transparent? I can't find a way to do this.

mauisoftware avatar Nov 01 '24 16:11 mauisoftware

Background color is not exposed, use fork or reflection, or wait #368

0xF6 avatar Nov 01 '24 21:11 0xF6

damn, dead repo

0xF6 avatar Nov 04 '24 07:11 0xF6

What you mean "dead repo"?

Regarding the original question, I found this: https://www.magpcss.org/ceforum/viewtopic.php?f=8&t=17421, so it seems that some changes in CEF code would be necessary.

Tried, using the background color cefsetting but it doesn't seem to be honored by cef.

joaompneves avatar Nov 04 '24 10:11 joaompneves

Tried, using the background color cefsetting but it doesn't seem to be honored by cef.

Transparent color is currently working (set via CefSettings.BackgroundColor), but requires enabling WindowlessRenderingEnabled I'm still investigating the problem, but I think it's quite possible to find a solution (especially looking at how some guys implement cef transparency when rendering in games\etc)

0xF6 avatar Dec 22 '24 08:12 0xF6

Eh, transparent render + hardware acceleration + OSR it works under certain settings

Need remove disable-gpu and disable-gpu-compositing when IsOSREnabled is true from BrowserCefApp:OnBeforeCommandLineProcessing Enable OSR Set background color in cef settings And result is great

0xF6 avatar Dec 25 '24 02:12 0xF6