1. 17 Dec, 2017 1 commit
  2. 10 Dec, 2017 1 commit
    • Timm Bäder's avatar
      css: Replace _AFFECTS_TEXT with _TEXT_SIZE and _TEXT_CLIP · 492469a9
      Timm Bäder authored
      It was used to mark css properties that affect widgets with text, but it
      caused unnecessary invalidations. E.g. 'color' was marked as
      AFFECTS_TEXT but changing just the color of a label should not
      automatically queue a resize, which is what the code in
      gtk_widget_real_style_updated does.
      Replace this flag with GTK_CSS_AFFECTS_TEXT_SIZE and
      GTK_CSS_AFFECTS_TEXT_CLIP, which GtkWidget can use only if the widget
      actually has text.
  3. 03 Jul, 2016 1 commit
    • Georges Basile Stavracas Neto's avatar
      css: add background-blend-mode support · 369db4a4
      Georges Basile Stavracas Neto authored
      CSS supports blend modes, in which a series of layers are
      merged together according to the given operation or set of
      Support for blend modes landed on Cairo, which exposes all
      the commons and also the exquisites blend modes available.
      Adding support for blend modes, then, is just a matter of
      using the available Cairo operations.
      This patch adds the background-blend-mode CSS enum property,
      and adapts the background rendering code to blend the backgrounds
      using the available blend modes when they're set.
  4. 03 May, 2016 1 commit
  5. 13 Feb, 2016 1 commit
    • Benjamin Otte's avatar
      cssnumbervalue: Remove gtk_css_number_value_get_unit() · e2d966ed
      Benjamin Otte authored
      This is in preparation for calc(), as calc(50% - 5px) is valid CSS
      but has 2 units. Instead, add a function to query a value's dimension
      (so we can differentiate lengths from numbers) and add a function to
      query if the value contains percentages.
  6. 07 Feb, 2016 1 commit
  7. 04 Feb, 2016 1 commit
  8. 20 Jan, 2016 1 commit
  9. 13 Jan, 2016 1 commit
  10. 08 Jan, 2016 1 commit
  11. 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.
  12. 15 Dec, 2015 1 commit
  13. 04 Dec, 2015 1 commit
  14. 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
  15. 01 Dec, 2015 1 commit
  16. 22 Oct, 2015 1 commit
  17. 27 Aug, 2015 2 commits
  18. 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
  19. 02 Aug, 2015 2 commits
  20. 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.
  21. 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.
  22. 05 Jul, 2015 3 commits
  23. 18 Mar, 2015 5 commits
  24. 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.
  25. 27 Jan, 2015 2 commits
  26. 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.
  27. 07 Jan, 2015 1 commit
  28. 08 Oct, 2014 1 commit
  29. 03 Oct, 2014 1 commit
  30. 28 Aug, 2014 1 commit