WindowBackdrop

interface WindowBackdrop

The type of the window backdrop/background.

Fallback Strategy

In case of unsupported effect the library tries to fall back to the nearest supported effect as follows:

Tabbed ->Mica ->Acrylic ->Transparent

Aero is dropped from the fallback as it is much more transparent than Tabbed or Mica and not customizable as Acrylic. If Tabbed or Mica falls back to Acrylic or Transparent, high alpha is used with white or black color according to isDarkTheme to emulate these effects.

Types

Link copied to clipboard
open class Acrylic(val color: Color) : WindowBackdrop, ColorableWindowBackdrop

This applies Acrylic backdrop blended with the supplied color. If the backdrop is rendered opaque, double check that color has reasonable alpha value.

Link copied to clipboard
object Aero : WindowBackdrop

This applies Aero backdrop which is Windows Vista and Windows 7 version of blur.

Link copied to clipboard
object Default : WindowBackdrop

This effect provides a simple solid backdrop colored as white or black according to isDarkTheme. This allows the backdrop to blend with the title bar as well. Though its name may imply that the window will be left unchanged, this is not the case as once the transparency is hacked into the window, it can't be reverted.

Link copied to clipboard
object Mica : WindowBackdrop

This applies Mica backdrop themed according to isDarkTheme value.

Link copied to clipboard
open class Solid(val color: Color) : WindowBackdrop, ColorableWindowBackdrop

This applies color as a solid background which means that any alpha component is ignored and the color is rendered as opaque.

Link copied to clipboard
object Tabbed : WindowBackdrop

This applies Tabbed backdrop themed according to isDarkTheme value. This is a backdrop that is similar to Mica but targeted at tabbed windows.

Link copied to clipboard
open class Transparent(color: Color) : WindowBackdrop, ColorableWindowBackdrop

Same as Solid but allows transparency taking into account the alpha value. If the passed color is fully opaque, the alpha is set to 0.5F.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard