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. 20 Aug, 2016 1 commit
  4. 28 Jul, 2016 1 commit
    • Benjamin Otte's avatar
      css: Rename functions · f4222080
      Benjamin Otte authored
      I don't want to use a generic function for font sizes as font sizes are
      special. Plus, the function is only used in one place.
  5. 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.
  6. 18 Apr, 2016 2 commits
  7. 21 Feb, 2016 2 commits
  8. 16 Feb, 2016 1 commit
  9. 11 Feb, 2016 1 commit
  10. 07 Feb, 2016 1 commit
  11. 22 Jan, 2016 1 commit
  12. 21 Jan, 2016 1 commit
  13. 14 Jan, 2016 1 commit
  14. 13 Jan, 2016 1 commit
  15. 08 Jan, 2016 1 commit
  16. 22 Dec, 2015 1 commit
  17. 15 Dec, 2015 1 commit
  18. 04 Dec, 2015 1 commit
  19. 02 Dec, 2015 2 commits
    • 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
    • Benjamin Otte's avatar
      css: Add ability to specify icontheme in CSS · da6beb99
      Benjamin Otte authored
      -gtk-icontheme: "oxygen" works now.
      This is a very crude implementation. It's meant for testing only.
  20. 01 Dec, 2015 1 commit
  21. 21 Nov, 2015 2 commits
  22. 08 Jul, 2015 1 commit
  23. 06 Jul, 2015 1 commit
  24. 05 Jul, 2015 3 commits
  25. 16 Feb, 2015 1 commit
  26. 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.
  27. 27 Jan, 2015 3 commits
  28. 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.
  29. 24 Dec, 2014 1 commit
    • Matthias Clasen's avatar
      css: Handle font-size changes properly · 31f502a9
      Matthias Clasen authored
      Changing font size does not cause widgets to update their size
      properly anymore, since we forgot an invalidation flag. The
      problem can be observed e.g. by running gtk3-demo and calling
      gsettings set org.gnome.desktop.interface font-name "Cantarell 22"
  30. 24 Oct, 2014 1 commit
  31. 21 Oct, 2014 1 commit
    • Benjamin Otte's avatar
      css: Add "-gtk-icon-source: builtin" · 8abc6e06
      Benjamin Otte authored
      ... and make it the default. This takes over the meaning from "none" for
      this property in that it draws the fallback builtin image.
      "none" now literally means no image will be drawn.
  32. 03 Oct, 2014 1 commit