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
StyleManagerGidBuilder builder() static nothrowGet builder for [adw.style_manager.StyleManager] Returns: New builder objectadw.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 schemevoid setColorScheme(adw.types.ColorScheme colorScheme) nothrowSets the requested application color scheme.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.Fluent builder for adw.style_manager.StyleManager
Methods