1. 16 Dec, 2015 1 commit
    • Benjamin Otte's avatar
      css: Move enum · 75d7f7e7
      Benjamin Otte authored
      I want to use it for a gadget, so it's better in the generic file.
  2. 15 Dec, 2015 1 commit
  3. 04 Dec, 2015 1 commit
  4. 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
      "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
  5. 01 Dec, 2015 1 commit
  6. 22 Oct, 2015 1 commit
  7. 27 Aug, 2015 2 commits
  8. 05 Aug, 2015 1 commit
    • Chun-wei Fan's avatar
      gtk/gtkcsstypesprivate.h: Fix Build · f0a1a0c0
      Chun-wei Fan authored
      The recent change to the enum declaration for GtkCssChange actually
      relied on compiler-dependent behavior, which also breaks the build on
      some non-GCC compilers, such as Visual Studio.  As noted in the
      G_STATIC_ASSERT line just beneath this declaration, we need to change
      this enum declaration to #define's, in order to fix the build in such
  9. 02 Aug, 2015 2 commits
  10. 17 Jul, 2015 1 commit
    • Benjamin Otte's avatar
      css: Fix GtkCssChange enum · 6c862f22
      Benjamin Otte authored
      Previously, the (1<<31) value evaluated to the 64bit value
      instead of
      Avoid this by explicitly casting the value to unsigned long long.
      Also cast all values to unsigned long long to achieve consistency
      and hopefully in the future get new values added the same way.
  11. 06 Jul, 2015 2 commits
    • Paolo Borelli's avatar
      css: support text-decoration-style · 1eb1481b
      Paolo Borelli authored
      The support is limited to underline single, double and wavy, which
      is what pango has today.
    • Benjamin Otte's avatar
      csstypes: expand GtkCssChange enum · 6323010e
      Benjamin Otte authored
      Instead of GTK_CSS_CHANGE_POSITION we now have 4 values:
      Nobody is using them directly yet.
  12. 05 Jul, 2015 3 commits
  13. 18 Mar, 2015 5 commits
  14. 05 Feb, 2015 1 commit
    • Benjamin Otte's avatar
      css: Add -gtk-dpi CSS property hack · 89f635fe
      Benjamin Otte authored
      This property is necessary to ensure widgets automatically update after
      the text scale factor is changed desktop-wide.
      And if I'm already doing a property like this, I can make it
      overridable. So now you can override the dpi per-widget with CSS like
      GtkSwitch {
        -gtk-dpi: 48;
      if you want to debug things.
      Long-term, we want to get rid of this property and insist on dpi being
      96 everywhere and people can change the font size to get larger fonts.
  15. 27 Jan, 2015 2 commits
  16. 20 Jan, 2015 1 commit
    • Benjamin Otte's avatar
      css: Move icon properties to the end · 9ce8ce11
      Benjamin Otte authored
      The order in which properties are defined depends on the order in which
      they are computed. And that means that properties can only depend on
      other properties that are defined before them.
      The next patches will need this reordering.
  17. 07 Jan, 2015 1 commit
  18. 08 Oct, 2014 1 commit
  19. 03 Oct, 2014 1 commit
  20. 28 Aug, 2014 1 commit
  21. 20 Aug, 2014 1 commit
  22. 14 May, 2014 3 commits
    • Benjamin Otte's avatar
      css: Add a -gtk-icon-style property · 109fcb98
      Benjamin Otte authored
      The values can be:
        "requested" - the style as requested
        "regular"   - use a regular full-color icon
        "symbolic"  - use a symbolic icon
      The property defaults to "requested", so no changes should be seen
      unless CSS overrides it.
      It is also inherited, so that using this CSS
        .toolbar { -gtk-icon-style: symbolic; }
      is enough to force the whole toolbar to use symbolic icons.
    • Benjamin Otte's avatar
      css: Add -gtk-icon-transform property · f56ba837
      Benjamin Otte authored
      This property allows transforming icons and is mainly intended to be
      used for spinner animations.
    • Benjamin Otte's avatar
      css: Add -gtk-icon-source property · 226e1cd2
      Benjamin Otte authored
      This is to be used for rendering icon content via CSS, such as spinners
      or checkboxes.
  23. 01 May, 2014 1 commit
  24. 20 Aug, 2013 1 commit
  25. 07 Feb, 2013 1 commit
  26. 10 Dec, 2012 1 commit
  27. 01 Dec, 2012 2 commits
    • Benjamin Otte's avatar
      css: Fix order of enum · 14604876
      Benjamin Otte authored
      We switched around the order in gtkcssenumvalue.h, we need to switch
      this order, too. Otherwise the parsing code will go bonkers.
    • Benjamin Otte's avatar
      css: Add more features to font-size code · 0d9d5761
      Benjamin Otte authored
      We now support the keywords (like xx-small, medium, larger, smaller...)
      and I've changed the default value to be "medium".
      This required some shuffling of the "get default font size" code. But
      all is well now.