Class
HandyStyleManager
Description [src]
final class Handy.StyleManager : GObject.Object {
/* No available fields */
}
A class for managing application-wide styling.
HdyStyleManager
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
HdyStyleManager:color-scheme
property, and to query the current
appearance, as well as whether a system-wide color scheme preference exists.
Important: GtkSettings:gtk-application-prefer-dark-theme
should
not be used together with HdyStyleManager
and will result in a warning.
Color schemes should be used instead.
Available since: | 1.6 |
Instance methods
hdy_style_manager_get_color_scheme
Gets the requested application color scheme.
Available since: 1.6
hdy_style_manager_get_dark
Gets whether the application is using dark appearance.
Available since: 1.6
hdy_style_manager_get_display
Gets the display the style manager is associated with.
Available since: 1.6
hdy_style_manager_get_high_contrast
Gets whether the application is using high contrast appearance.
Available since: 1.6
hdy_style_manager_get_system_supports_color_schemes
Gets whether the system supports color schemes.
Available since: 1.6
hdy_style_manager_set_color_scheme
Sets the requested application color scheme.
Available since: 1.6
Properties
Handy.StyleManager:high-contrast
Whether the application is using high contrast appearance.
Available since: 1.6
Handy.StyleManager:system-supports-color-schemes
Whether the system supports color schemes.
Available since: 1.6
Class structure
struct HandyStyleManagerClass {
GObjectClass parent_class;
}
Class members
parent_class |
|
No description available. |
Functions
hdy_style_manager_get_for_display
Gets the HdyStyleManager
instance managing display
.
Available since: 1.6