WindowFrameStyle

data class WindowFrameStyle(    val borderColor: Color = Color.Unspecified,     val titleBarColor: Color = Color.Unspecified,     val captionColor: Color = Color.Unspecified,     val cornerPreference: WindowCornerPreference = WindowCornerPreference.DEFAULT)

Styles for the window frame which includes the title bar and window border.

All these styles are only supported on Windows 11 or greater and has no effect on other OSes.

Constructors

Link copied to clipboard
fun WindowFrameStyle(    borderColor: Color = Color.Unspecified,     titleBarColor: Color = Color.Unspecified,     captionColor: Color = Color.Unspecified,     cornerPreference: WindowCornerPreference = WindowCornerPreference.DEFAULT)

Properties

Link copied to clipboard
val borderColor: Color

Specifies the color of the window border that is running around the window if the window is decorated. This property doesn't support transparency.

Link copied to clipboard
val captionColor: Color

Specifies the color of the window caption (title) text if the window is decorated. This property doesn't support transparency.

Link copied to clipboard
val cornerPreference: WindowCornerPreference

Specifies the shape of the corners you want. For example, you can use this property to avoid rounded corners in a decorated window or get the corners rounded in an undecorated window.

Link copied to clipboard
val titleBarColor: Color

Specifies the color of the window title bar (caption bar) if the window is decorated. This property doesn't support transparency.