1. 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
        0xFFFFFFFF80000000
      instead of
        0x0000000080000000
      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.
      6c862f22
  2. 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.
      1eb1481b
    • Benjamin Otte's avatar
      csstypes: expand GtkCssChange enum · 6323010e
      Benjamin Otte authored
      Instead of GTK_CSS_CHANGE_POSITION we now have 4 values:
      GTK_CSS_CHANGE_FIRST_CHILD, GTK_CSS_CHANGE_LAST_CHILD,
      GTK_CSS_CHANGE_NTH_CHILD and GTK_CSS_CHANGE_NTH_LAST_CHILD
      
      Nobody is using them directly yet.
      6323010e
  3. 05 Jul, 2015 3 commits
  4. 18 Mar, 2015 5 commits
  5. 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.
      89f635fe
  6. 27 Jan, 2015 2 commits
  7. 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.
      9ce8ce11
  8. 07 Jan, 2015 1 commit
  9. 08 Oct, 2014 1 commit
  10. 03 Oct, 2014 1 commit
  11. 28 Aug, 2014 1 commit
  12. 20 Aug, 2014 1 commit
  13. 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.
      109fcb98
    • 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.
      f56ba837
    • 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.
      226e1cd2
  14. 01 May, 2014 1 commit
  15. 20 Aug, 2013 1 commit
  16. 07 Feb, 2013 1 commit
  17. 10 Dec, 2012 1 commit
  18. 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.
      14604876
    • 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.
      0d9d5761
  19. 14 Nov, 2012 1 commit
  20. 01 Oct, 2012 1 commit
  21. 28 Sep, 2012 2 commits
  22. 17 Sep, 2012 1 commit
  23. 28 Aug, 2012 3 commits
    • Benjamin Otte's avatar
      css: Remove unused macro · fe026b3b
      Benjamin Otte authored
      GTK_CSS_DEPENDS_ON_EVERYTHING was used as a placeholder when
      implementing dependencies. Now that dependencies are completely
      implemented, it's no longer necessary.
      fe026b3b
    • Benjamin Otte's avatar
      cssvalue: First step of proper dependency tracking · 01252624
      Benjamin Otte authored
      Instead of using the EVERYTHING aka FIXME value for tdependencies,
      actually compute the dependencies in a bunch of simple cases.
      01252624
    • Benjamin Otte's avatar
      css: Introduce dependencies for value computations · 0e2f35ed
      Benjamin Otte authored
      When values are computed, they might depend on various other values and
      we need to track this so we can update the values when those other
      values change. This is the first step in making that happen.
      
      This patch does not do any dependency tracking at all, instead it uses
      GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME.
      0e2f35ed
  24. 17 Apr, 2012 3 commits
    • Benjamin Otte's avatar
      stylecontext: Add an animating framework · a2408088
      Benjamin Otte authored
      The design principles were:
      
      - synchronized
      If multiple style contexts are animating, they should all do an
      animation step at the same time.
      
      - degrades well
      Even when there's thousands of style contexts all animating at the same
      time, the animation steps don't starve the CPU. This is achieved by
      making sure the timeout is really fast. It just sets a bunch of flags.
      
      - no hidden bottlenecks
      Turning animatability on or off on a style context is O(1).
      
      So far it is unused.
      a2408088
    • Benjamin Otte's avatar
      e2f89c0c
    • Benjamin Otte's avatar
      css: Remove old animation code · 04c5fdac
      Benjamin Otte authored
      Deprecate public API where appropriate and make it no-ops.
      Remove all calls to it.
      Get rid of the 'transition' css property.
      
      For now, this means spinners don't animate anymore.
      04c5fdac