adw.style_manager

Module for [StyleManager] class

Types 3

A class for managing application-wide styling.

[adw.style_manager.StyleManager] provides a way to query and influence the application styles, such as whether to use dark 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 preference exists.

Methods
GType _gType() @property
StyleManager self()Returns `this`, for use in `with` statements.
StyleManagerGidBuilder builder()Get builder for [adw.style_manager.StyleManager] Returns: New builder object
adw.types.ColorScheme colorScheme() @propertyGet `colorScheme` property. Returns: The requested application color scheme.
void colorScheme(adw.types.ColorScheme propval) @propertySet `colorScheme` property. Params: propval = The requested application color scheme.
bool dark() @propertyGet `dark` property. Returns: Whether the application is using dark appearance.
gdk.display.Display display() @propertyGet `display` property. Returns: The display the style manager is associated with.
bool highContrast() @propertyGet `highContrast` property. Returns: Whether the application is using high contrast appearance.
bool systemSupportsColorSchemes() @propertyGet `systemSupportsColorSchemes` property. Returns: Whether the system supports color schemes.
adw.style_manager.StyleManager getDefault()Gets the default [adw.style_manager.StyleManager] instance.
adw.style_manager.StyleManager getForDisplay(gdk.display.Display display)Gets the [adw.style_manager.StyleManager] instance managing display.
adw.types.ColorScheme getColorScheme()Gets the requested application color scheme. Returns: the color scheme
bool getDark()Gets whether the application is using dark appearance.
gdk.display.Display getDisplay()Gets the display the style manager is associated with.
bool getHighContrast()Gets whether the application is using high contrast appearance.
bool getSystemSupportsColorSchemes()Gets whether the system supports color schemes.
void setColorScheme(adw.types.ColorScheme colorScheme)Sets the requested application color scheme.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T colorScheme(adw.types.ColorScheme propval)Set `colorScheme` property. Params: propval = The requested application color scheme.
T display(gdk.display.Display propval)Set `display` property. Params: propval = The display the style manager is associated with.

Fluent builder for [adw.style_manager.StyleManager]