1. 09 Dec, 2015 1 commit
  2. 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
  3. 04 Nov, 2015 1 commit
    • Emmanuele Bassi's avatar
      docs: Point at for_scale() variants · c1ecd1ef
      Emmanuele Bassi authored
      Using lookup_icon() and lookup_by_gicon() with a size multiplied by a
      scaling factor is almost certainly going to get worse results than using
      their for_scale() variants.
      c1ecd1ef
  4. 28 Oct, 2015 1 commit
  5. 27 Oct, 2015 1 commit
    • Matthias Clasen's avatar
      icon theme: Ensure to propagate an error · 270e900f
      Matthias Clasen authored
      If the svg pixbuf loader is not available, we end up with criticals
      from gtk_css_image_icon_theme_draw because gtk_icon_info_load_symbolic
      returns NULL without setting an error.
      
      Avoid this by propagating the load error.
      270e900f
  6. 17 Jul, 2015 1 commit
  7. 12 Jun, 2015 1 commit
  8. 02 Jun, 2015 1 commit
  9. 23 Feb, 2015 3 commits
  10. 31 Jan, 2015 1 commit
  11. 08 Dec, 2014 1 commit
  12. 03 Nov, 2014 1 commit
  13. 21 Sep, 2014 2 commits
    • Matthias Clasen's avatar
      GtkIconTheme: Repair symbolic fallback with rtl/ltr · 964c202c
      Matthias Clasen authored
      For symbolic icons, we prefer symbolics in inherited themes over
      generic icons in the theme itself. So far this was implemented
      by looking at icon_name[0] and looking that up in inherited themes
      if it is symbolic. But with automatic rtl/ltr handling, the first
      icon  name will always have an -rtl or -ltr suffix, and an icon
      with that suffix is not going to exist in most cases. To fix this,
      look for shorter icon names too, as long as they are still symbolic.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=737000
      964c202c
    • Matthias Clasen's avatar
      Trivial: clarify a comment · 1b858e42
      Matthias Clasen authored
      Using 'highcolor' here seems confusing, since there is a theme
      by that name. Just say full-color.
      1b858e42
  14. 05 Sep, 2014 1 commit
  15. 12 Aug, 2014 1 commit
    • Alexander Larsson's avatar
      Change way alpha is used when recoloring symbolics · afeb5000
      Alexander Larsson authored
      If the foreground color has an alpha != 1 we used to just pass that into
      the svg. This is useful to e.g. render an insensitive icon. However,
      that is not an ideal model for symbolics. For instance, if the icon uses
      overlapping areas when drawing, expecting these to be opaque then the
      transparent color will result in a different alpha value for the overlapping
      area. Also, non-foreground symbolic colors are still rendered opaque, and
      the recoloring of pngs can't handle transparent colors.
      
      So, instead we extract any alpha from the foreground, render using the
      opaque colors and then apply the foreground alpha to the entire result.
      This means we get an even transparency, even for other colors, and we
      can apply alpha for the pngs too.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=734668
      afeb5000
  16. 03 Aug, 2014 1 commit
  17. 17 Jul, 2014 1 commit
    • Matthias Clasen's avatar
      GtkIconTheme: Make spinners scale in hi-dpi · f3ef3165
      Matthias Clasen authored
      The Adwaita icon theme ships spinners in a scalable directory
      with MaxSize=32 and Scale=1. One way to make them scale up in
      hi-dpi would be to add an @2 directory with MaxSize=32 and Scale=2,
      but that directory would also be consulted in non hi-dpi situations
      and give us an effective spinner max size of 64.
      
      Instead, treat svg icons implicitly as hi-dpi, and scale them
      up to MaxSize * 2 when in hi-dpi.
      f3ef3165
  18. 15 Jul, 2014 1 commit
  19. 14 Jul, 2014 1 commit
    • Matthias Clasen's avatar
      GktIconTheme: Be more careful with paths · 5a252f13
      Matthias Clasen authored
      Slapping file:// in front of a path does not guarantee a working
      uri (e.g. if you are on windows and the path looks like F:\\...).
      Therefore, go back to using g_file_new_for_path if we don't have
      to deal with a resource.
      5a252f13
  20. 10 Jul, 2014 2 commits
  21. 09 Jul, 2014 1 commit
  22. 30 Jun, 2014 7 commits
  23. 23 Jun, 2014 4 commits
  24. 22 Jun, 2014 4 commits