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

CefSettings.background_color has no effect #362

Open
magreenblatt opened this issue Jan 22, 2020 · 0 comments
Open

CefSettings.background_color has no effect #362

magreenblatt opened this issue Jan 22, 2020 · 0 comments
Labels
bug Bug report

Comments

@magreenblatt
Copy link
Collaborator

Original report by Anton Tarasov (Bitbucket: Anton Tarasov).


When I set a background color like (red):
settings.background_color = settings.new ColorType(255, 255, 0, 0);

And then create windowed opaque browser:
client.createBrowser("about:blank", false, false);

It always appears with white background.
On macOS it takes some time before a web page loads, so the white background can contrast with dark UI…

The reason is that the color is overridden in CefBrowser_N.create:
if (transparent == JNI_FALSE) {
// Specify an opaque background color (white) to disable transparency.
settings.background_color = CefColorSetARGB(255, 255, 255, 255);
}

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

No branches or pull requests

1 participant