Skip to content
  • Benjamin Otte's avatar
    css: Introduct -gtk-icon-palette · 7fa37e4b
    Benjamin Otte authored
    This borrows heavily from the CSS4 fonts draft's font-palette, currently
    found at https://drafts.csswg.org/css-fonts-4/#font-palette-control
    
    The palette is mainly meant to trigger invalidations when colors used for
    symbolic icons change, to potentially allow extending supported colors
    in symbolic icons and to recolor all colors of a symbolic icon, not just
    the main one.
    
    The syntax for the property goes like this:
    Name:        -gtk-icon-palette
    Value:       default | name <color> [ , name <color> ]*
    Initial:     default
    Applies to:  all elements with icons
    Inherited:   yes
    Animatable:  yes, each color animated separately
    
    The property defines a list of named colors to be used when looking up
    icons. If a name is not defined, the value of the current "color"
    property is used. Which names are relevant depends on the icons in use.
    Currently symbolic icons make use of the names "success", "warning" and
    "error".
    
    "default" is the current behavior of the GTK when coloring symbol...
    7fa37e4b