Is it possible to change the loading screen color on CEFSharp. Like Chrome, when loading a new url it will show a white page until its loaded and rendered. Is it possible to change this loading color to black?
With CEF directly, there seems to be a command line argument: --background-color=black (Source https://bitbucket.org/chromiumembedded/cef/issues/1984/momentary-white-flash-with-osr-in#comment-33637201)
But there doesn't seem to be a way to do this with CEFSharp Directly.
Wow, I'm super duper late. But this is how I did it,
var sett = new CefSharp.BrowserSettings();
sett.BackgroundColor = ColorToUInt(System.Drawing.Color.FromArgb(255, 27, 40, 56));
chromium.BrowserSettings = sett;
Color to Uint function,
public static uint ColorToUInt(Color color)
{
return (uint)((color.A << 24) | (color.R << 16) | (color.G << 8) | (color.B << 0));
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With