Page 1 of 1

White screen before url loading

Posted: Wed Aug 07, 2019 3:18 pm
by dinko
Chromium1.LoadURL(URL); makes the CefWindowParent window white a few seconds before the page loads.

I tried this code:

Chromium1.LoadString('<html><body style="background-color: black; color: #fff"></body></html>', 'about:blank');
Chromium1.LoadURL(URL);

The window turns into black and then white and then the page.

How can I change this ugly white color? I tried all ways and nothing worked.

PS: I have cef_3.3683.1920.0 binaries
* CEF4Delphi uses CEF 3.3683.1920.g9f41a27 which includes Chromium 73.0.3683.75.

Re: White screen before url loading

Posted: Wed Aug 07, 2019 3:52 pm
by dinko
Finally found it, it just requires to set the BackgroundColor before the StartMainProcess on the DPR file

GlobalCEFApp.BackgroundColor := $FF000000; // black
GlobalCEFApp.StartMainProcess;