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 adw.style_manager.StyleManager.colorScheme property, and to query the current appearance, as well as whether a system-wide color scheme preference exists.

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

Fluent builder implementation template for adw.style_manager.StyleManager

Methods
T colorScheme(adw.types.ColorScheme propval) nothrowSet `colorScheme` property. Params: propval = The requested application color scheme.
T display(gdk.display.Display propval) nothrowSet `display` property. Params: propval = The display the style manager is associated with.
Methods
StyleManager build() nothrowCreate object from builder. Returns: New object