summaryrefslogtreecommitdiff
path: root/gtk/gtkcssenumvalueprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert headers to #pragma onceMatthias Clasen2023-03-311-3/+1
| | | | The conversion was done by guard2one.
* css: Implement text-transformMatthias Clasen2021-08-221-0/+3
| | | | | | Implement the text-transform property from https://www.w3.org/TR/css-text-3/#text-transform-property using a new Pango attribute.
* css: Fix text-decoration-line supportMatthias Clasen2021-01-261-4/+5
| | | | | | | | | | | | This property needs to be treated as flags, not as enum, since it should be possible to specify more than one value, e.g. text-decoration-line: underline overline; Tests included. Fixes: #3621
* css: Move _gtk_css_print_string aroundMatthias Clasen2020-10-021-1/+3
| | | | | | Move this to a separate header, since it is not parser functionality, and kill the duplicate gtkcssparserprivate.h header.
* css: Make font-weight an integerBenjamin Otte2019-04-121-3/+2
| | | | | This conforms to what Pango does and to the CSS4 spec. And it makes the parsing code easier. So let's go for it.
* css: Merge GtkStyleProviderPrivate into GtkStyleProviderBenjamin Otte2017-10-311-2/+2
| | | | | | | | This is just lots of renaming. The interface remains private, so the public API does not change, apart from removing the definition of the Interface object to avoid subclassing.
* css: Use enums instead of idents for font-variant propertiesMatthias Clasen2017-09-181-0/+32
| | | | | | | | As Benjamin says, ident should only be used if any value is valid, which is not the case here. So use enums instead, which should also be more efficient. To handle the more complicated cases like font-variant-ligatures, we have to introduce flags-like values.
* css: implement font-variant as a shorthandMatthias Clasen2017-09-181-4/+0
| | | | | | | | | Drop the current css2-style font-variant property and replace it with a shorthand as specified in the css3 fonts module. Currently, we fully support the font-variant-ligatures, font-variant-position, font-variant-caps, font-variant-numeric and font-variant-east-asian subproperties. font-variant-alternatives is only partially supported.
* css: Remove -gtk-icon-effectBenjamin Otte2016-12-311-6/+0
| | | | -gtk-icon-filter replaces this now.
* css: Replace custom blend modes with GskBlendModeBenjamin Otte2016-12-201-2/+2
|
* css: add background-blend-mode supportGeorges Basile Stavracas Neto2016-07-031-0/+4
| | | | | | | | | | | | | | | | | CSS supports blend modes, in which a series of layers are merged together according to the given operation or set of operations. 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. https://bugzilla.gnome.org/show_bug.cgi?id=768305
* css: always get default font size in pixelsMatt Watson2016-04-121-1/+2
| | | | | | | | | | | | | | | Fixes a couple bugs... - Pixel font sizes in css would render as point sizes. - For em font sizes, where the parent size was set and not default, we would incorrectly convert a pixel value from points to pixels. We'll always grab the default font size in pixels so we don't keep confusing things. Worth noting that gtk css font-size will still behave differently than the web. Pango interprets font-size differently.
* render: Split out icon-effect apply functionBenjamin Otte2015-12-041-0/+2
|
* css: Rename -gtk-image-effect to -gtk-icon-effectBenjamin Otte2015-12-021-3/+3
| | | | This is a property for icons, so we should name it as such.
* css: support text-decoration-stylePaolo Borelli2015-07-061-0/+4
| | | | | The support is limited to underline single, double and wavy, which is what pango has today.
* css: add support for text-decoration-linePaolo Borelli2015-07-061-0/+4
|
* css: Implement font-stretchEmmanuele Bassi2014-08-281-0/+4
| | | | | | | | | | | | | | The font-stretch CSS property is defined in the Level 3 CSS Fonts module, available at: http://dev.w3.org/csswg/css-fonts/#propdef-font-stretch It allows defining a normal, condensed, or expanded face to the font description. Pango already supports it, so this is literally just the CSS parser machinery needed to bridge our CSS to the FontDescription API. https://bugzilla.gnome.org/show_bug.cgi?id=735593
* css: Add a -gtk-icon-style propertyBenjamin Otte2014-05-141-0/+4
| | | | | | | | | | | | | 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.
* css: Add a GtkCssValue for GtkCssImageEffectCosimo Cecchi2013-08-201-0/+4
| | | | | | | This will allow us to use the CSS machinery to apply a highlight or dim effect when images are prelit or insensitive. https://bugzilla.gnome.org/show_bug.cgi?id=705443
* cssvalue: Parse font sizes properlyBenjamin Otte2012-12-011-0/+1
| | | | | As the last CSS property, font-size now is a proper number (when it's not a keyword).
* css: Add more features to font-size codeBenjamin Otte2012-12-011-0/+4
| | | | | | | | 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.
* cssvalue: Add animation enum propertiesBenjamin Otte2012-09-171-0/+12
|
* cssvalue: Add GtkCssArea to the enum valuesBenjamin Otte2012-04-171-0/+4
| | | | | | | ... and get rid of its GType. This makes it non-queryable using gtk_style_context_get() but it used to be a private struct anyway.
* cssvalue: Add enum values for the pango enumsBenjamin Otte2012-04-171-0/+12
| | | | And fix the parser to conform to the CSS spec while at it.
* cssvalue: Make border styles be their own valueBenjamin Otte2012-04-171-0/+36
... and add them via gtkcssenumvalue.[ch] which will be used for all enums.