summaryrefslogtreecommitdiff
path: root/gtk/gtkcsstypesprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-03 00:33:51 +0100
committerBenjamin Otte <otte@redhat.com>2015-12-03 00:47:00 +0100
commit7fa37e4bf886745e8e7b07b6653513ac4c5172d3 (patch)
tree78aaf1fffad34b65afda31dcfab5ec84cb37e09b /gtk/gtkcsstypesprivate.h
parent109c3aa65a66c4a0bbae546500f68f82178d6d36 (diff)
downloadgtk+-7fa37e4bf886745e8e7b07b6653513ac4c5172d3.tar.gz
css: Introduct -gtk-icon-palette
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 symbolic icons and is equal to the string success @success_color, warning @warning_color, error @error_color Animation is crudely implemented by animating colors that are in both palettes that are animated and otherwise keeping the color from the palette that defined it. Note that this can cause a sharp cut at the beginning or end of the animation when the color goes away and will therefore be replaced with the color property. You can see an example of animations at http://gfycat.com/CautiousPeacefulIaerismetalmark
Diffstat (limited to 'gtk/gtkcsstypesprivate.h')
-rw-r--r--gtk/gtkcsstypesprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index 631b59376b..692bea9110 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -217,6 +217,7 @@ enum { /*< skip >*/
GTK_CSS_PROPERTY_ANIMATION_FILL_MODE,
GTK_CSS_PROPERTY_OPACITY,
GTK_CSS_PROPERTY_GTK_IMAGE_EFFECT,
+ GTK_CSS_PROPERTY_ICON_PALETTE,
GTK_CSS_PROPERTY_ENGINE,
GTK_CSS_PROPERTY_GTK_KEY_BINDINGS,
/* add more */