setBackgroundColor

open external fun setBackgroundColor(color: Color): Promise<Void>(source)

Sets the window background color.

Platform-specific:

  • Windows: alpha channel is ignored.

  • iOS / Android: Unsupported.

This sets the color of the window itself, which is what you see while the webview is still loading or behind a transparent page. To also change the webview background use {@link WebviewWindow.setBackgroundColor}.

Since

2.1.0

Parameters

color

The new background color, see {@link Color}.