Package: gtk
Function gtk:style-context-add-provider-for-display
Lambda Listgtk:style-context-add-provider-for-display (display provider &optional priority) ArgumentsDetails
Adds a global style provider to the display, which will be used in style
construction for all style contexts under the display. GTK uses this to make styling information from the gtk:settings
object available. Examples
(let ((provider (gtk:css-provider-new)))
(gtk:css-provider-load-from-string provider
".viewstyle textview {
color : Green;
font : 20px Purisa; }")
(gtk:widget-add-css-class window "viewstyle")
(gtk:style-context-add-provider-for-display (gtk:widget-display window)
provider)
... ) Notes | See also |
2025-09-22