The effective appearance will be decided based on the application color
scheme and the system preferred color scheme. The
propertyStyleManager:dark property can be used to query the current
effective appearance.
The adw.types.ColorScheme.PreferLight color scheme results in the application
using light appearance unless the system prefers dark colors. This is the
default value.
The adw.types.ColorScheme.PreferDark color scheme results in the application
using dark appearance, but can still switch to the light appearance if the
system can prefers it, for example, when the high contrast preference is
enabled.
Sets the requested application color scheme.
The effective appearance will be decided based on the application color scheme and the system preferred color scheme. The propertyStyleManager:dark property can be used to query the current effective appearance.
The adw.types.ColorScheme.PreferLight color scheme results in the application using light appearance unless the system prefers dark colors. This is the default value.
The adw.types.ColorScheme.PreferDark color scheme results in the application using dark appearance, but can still switch to the light appearance if the system can prefers it, for example, when the high contrast preference is enabled.
The adw.types.ColorScheme.ForceLight and adw.types.ColorScheme.ForceDark values ignore the system preference entirely. They are useful if the application wants to match its UI to its content or to provide a separate color scheme switcher.
If a per-gdk.display.Display style manager has its color scheme set to adw.types.ColorScheme.Default, it will inherit the color scheme from the default style manager.
For the default style manager, adw.types.ColorScheme.Default is equivalent to adw.types.ColorScheme.PreferLight.
The propertyStyleManager:system-supports-color-schemes property can be used to check if the current environment provides a color scheme preference.