prefers_contrast


Description:

[ NoAccessorMethod ]
[ Version ( since = "4.20" ) ]
public InterfaceContrast prefers_contrast { get; set; }

Define the contrast mode to use for the user interface.

When set to [enum@Gtk.InterfaceContrast.MORE] or [enum@Gtk.InterfaceContrast.LESS], the UI is rendered in high or low contrast.

When set to [enum@Gtk.InterfaceContrast.NO_PREFERENCE] (the default), the user interface will be rendered in default mode.

This setting is be available for media queries in CSS:

```css media (prefers-contrast: more) { // some style with high contrast } ```

Changing this setting will reload the style sheet.