Package: gtk
Accessor gtk:css-provider-prefers-contrast
Lambda Listgtk:css-provider-prefers-contrast (object) SyntaxArgumentsDetails The accessor for the prefers-contrast slot of the gtk:css-provider class gets or sets the contrast mode to use
for the user interface. When set to :more or :less, the UI is rendered in high or low contrast. When set to :no-preference (the default), the user interface will be rendered in default mode. This setting is be available for media queries in CSS:
@media (prefers-contrast: more) {
// some style with high contrast
}
Changing this setting will reload the style sheet.Since 4.20 | See also |
2025-11-08