1. 23 Feb, 2016 1 commit
  2. 22 Feb, 2016 1 commit
  3. 15 Feb, 2016 1 commit
  4. 08 Jan, 2016 1 commit
  5. 02 Dec, 2015 1 commit
    • 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 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
      7fa37e4b
  6. 08 Sep, 2015 1 commit
  7. 18 Mar, 2015 1 commit
  8. 06 Feb, 2015 1 commit
  9. 07 Jan, 2015 1 commit
  10. 24 Oct, 2014 1 commit
  11. 06 Sep, 2013 1 commit
    • Benjamin Otte's avatar
      css: Change currentColor handling · e6e99c4f
      Benjamin Otte authored
      We now pass NULL when the current color should be the default value of
      the "color" property and we haven't looked up any value yet. This way we
      don't need to look it up all the time and more importantly we can
      resolve the default color, which is required because it's a
      GtkCssColorValue and not a GtkCssRgbaValue.
      
      Fixes assertions triggering at Polari startup.
      e6e99c4f
  12. 03 Jul, 2013 1 commit
    • Alexander Larsson's avatar
      css: Add a scale argument to css-value compute vfunc · af2c40bd
      Alexander Larsson authored
      We need to be able to compute different GtkCssImage values
      depending on the scale, and we need this at compute time so that
      we don't need to read any images other than the scale in used (to
      e.g. calculate the image size). GtkStyleProviderPrivate is shared
      for all style contexts, so its not right.
      af2c40bd
  13. 28 Mar, 2013 2 commits
    • Benjamin Otte's avatar
      cssvalue: At cycle detection to color resolving · cbee3901
      Benjamin Otte authored
      The following CSS would infloop:
      
      @define-color self @self
      
      as it would infinitely lookup the color named "self" and try to resolve
      it. This patch adds detection of such cycles to the resolve function by
      keeping a list of currently resolving colors in the cycle_list variable.
      cbee3901
    • Benjamin Otte's avatar
      cssvalue: Handle named colors not resolving · c25d8e3a
      Benjamin Otte authored
      If a named color references a nonexistant named color, we didn't catch
      that error and ended up crashing on a NULL-dereference.
      This crashed Boxes, because its CSS referenced values from the theme
      that didn't exist in any theme.
      c25d8e3a
  14. 15 Jan, 2013 4 commits
  15. 25 Nov, 2012 4 commits
  16. 20 Nov, 2012 1 commit
  17. 10 Nov, 2012 1 commit
  18. 08 Nov, 2012 1 commit