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.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
White screen before url loading
Re: White screen before url loading
Finally found it, it just requires to set the BackgroundColor before the StartMainProcess on the DPR file
GlobalCEFApp.BackgroundColor := $FF000000; // black
GlobalCEFApp.StartMainProcess;
GlobalCEFApp.BackgroundColor := $FF000000; // black
GlobalCEFApp.StartMainProcess;