StyleManager

class StyleManager(pointer: <Error class: unknown class><<Error class: unknown class>>)

A class for managing application-wide styling.

AdwStyleManager provides a way to query and influence the application styles, such as whether to use dark style, the system accent color or high contrast appearance.

It allows to set the color scheme via the property@StyleManager:color-scheme property, and to query the current appearance, as well as whether a system-wide color scheme and accent color preferences exists.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The current system accent color.

Link copied to clipboard
val accentColorRgba: <Error class: unknown class>

The current system accent color as a GdkRGBA.

Link copied to clipboard
val adwStyleManagerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The requested application color scheme.

Link copied to clipboard

Whether the application is using dark appearance.

Link copied to clipboard
val display: <Error class: unknown class>?

The display the style manager is associated with.

Link copied to clipboard

Whether the application is using high contrast appearance.

Link copied to clipboard

Whether the system supports accent colors.

Link copied to clipboard

Whether the system supports color schemes.

Functions

Link copied to clipboard

Gets the current system accent color.

Link copied to clipboard
fun getAccentColorRgba(): <Error class: unknown class>

Gets the current system accent color as a GdkRGBA.

Link copied to clipboard

Gets the requested application color scheme.

Link copied to clipboard

Gets whether the application is using dark appearance.

Link copied to clipboard
fun getDisplay(): <Error class: unknown class>?

Gets the display the style manager is associated with.

Link copied to clipboard

Gets whether the application is using high contrast appearance.

Link copied to clipboard

Gets whether the system supports accent colors.

Link copied to clipboard

Gets whether the system supports color schemes.

Link copied to clipboard
fun setColorScheme(colorScheme: ColorScheme)

Sets the requested application color scheme.