Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Transparent #367

Open
mauisoftware opened this issue Nov 1, 2024 · 5 comments
Open

Background Transparent #367

mauisoftware opened this issue Nov 1, 2024 · 5 comments

Comments

@mauisoftware
Copy link

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

@0xF6
Copy link

0xF6 commented Nov 1, 2024

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

@0xF6
Copy link

0xF6 commented Nov 4, 2024

damn, dead repo

@joaompneves
Copy link
Collaborator

joaompneves commented Nov 4, 2024

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.

@0xF6
Copy link

0xF6 commented Dec 22, 2024

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
Copy link

0xF6 commented Dec 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants