Class

AdwStyleManager

Description [src]

final class Adw.StyleManager : GObject.Object
{
  /* No available fields */
}

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 AdwStyleManager:color-scheme property, and to query the current appearance, as well as whether a system-wide color scheme and accent color preferences exists.

Hierarchy

hierarchy this AdwStyleManager ancestor_0 GObject ancestor_0--this

Ancestors

Functions

adw_style_manager_get_default

Gets the default AdwStyleManager instance.

adw_style_manager_get_for_display

Gets the AdwStyleManager instance managing display.

Instance methods

adw_style_manager_get_accent_color

Gets the current system accent color.

unstable since: 1.6

adw_style_manager_get_accent_color_rgba

Gets the current system accent color as a GdkRGBA.

unstable since: 1.6

adw_style_manager_get_color_scheme

Gets the requested application color scheme.

adw_style_manager_get_dark

Gets whether the application is using dark appearance.

adw_style_manager_get_display

Gets the display the style manager is associated with.

adw_style_manager_get_high_contrast

Gets whether the application is using high contrast appearance.

adw_style_manager_get_system_supports_accent_colors

Gets whether the system supports accent colors.

unstable since: 1.6

adw_style_manager_get_system_supports_color_schemes

Gets whether the system supports color schemes.

adw_style_manager_set_color_scheme

Sets the requested application color scheme.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Adw.StyleManager:accent-color

The current system accent color.

unstable since: 1.6

Adw.StyleManager:accent-color-rgba

The current system accent color as a GdkRGBA.

unstable since: 1.6

Adw.StyleManager:color-scheme

The requested application color scheme.

Adw.StyleManager:dark

Whether the application is using dark appearance.

Adw.StyleManager:display

The display the style manager is associated with.

Adw.StyleManager:high-contrast

Whether the application is using high contrast appearance.

Adw.StyleManager:system-supports-accent-colors

Whether the system supports accent colors.

unstable since: 1.6

Adw.StyleManager:system-supports-color-schemes

Whether the system supports color schemes.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AdwStyleManagerClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.