summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyimpl.c
Commit message (Collapse)AuthorAgeFilesLines
* css: Add min-width/height CSS propertiesBenjamin Otte2015-12-151-0/+28
|
* css: Leftover renaming gtk-image-effect => icon-effectBenjamin Otte2015-12-041-1/+1
| | | | The previous renaming commit was incomplete, so here we go again.
* css: Introduct -gtk-icon-paletteBenjamin Otte2015-12-031-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "error". "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 http://gfycat.com/CautiousPeacefulIaerismetalmark
* css: Add ability to specify icontheme in CSSBenjamin Otte2015-12-021-7/+5
| | | | | | -gtk-icontheme: "oxygen" works now. This is a very crude implementation. It's meant for testing only.
* 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.
* Rename the gtk-key-bindings propertyMatthias Clasen2015-11-201-1/+2
| | | | | | This is not a standard CSS property, so rename it to -gtk-key-bindings. We still support the old name, with a deprecation warning.
* Rename the icon-shadow propertyMatthias Clasen2015-11-201-2/+3
| | | | | | This is not a standard CSS property, so rename it to -gtk-icon-shadow. We still support the old name, with a deprecation warning.
* css: text-decoration-style is not inheritedBenjamin Otte2015-07-081-3/+1
|
* css: support text-decoration-stylePaolo Borelli2015-07-061-0/+22
| | | | | The support is limited to underline single, double and wavy, which is what pango has today.
* css: support text-decoration-colorPaolo Borelli2015-07-061-0/+10
|
* css: add support for text-decoration-linePaolo Borelli2015-07-061-0/+22
|
* label: add support for CSS letter-spacing propertyPaolo Borelli2015-07-061-0/+17
| | | | | Support letter-spacing CSS property on GtkLabel. Reftest is included.
* css: Implement animations for font-weight propertyBenjamin Otte2015-02-161-1/+1
|
* css: Add -gtk-dpi CSS property hackBenjamin Otte2015-02-051-1/+17
| | | | | | | | | | | | | | | 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.
* css: Remove GtkCssStyleProperty::affects-sizeBenjamin Otte2015-01-271-2/+0
| | | | | ... and GtkCssStyleProperty::affects-font properties. Code now uses GtkCssStyleProperty::affects instead.
* css: Add GtkCssStyleProperty::affects propertyBenjamin Otte2015-01-271-0/+1
|
* css: Add a -gtk-icon-theme CSS propertyBenjamin Otte2015-01-271-0/+19
| | | | | | | | | The property is useless to set (it only allows 'initial', 'inherit' and 'unset' as values), but it is used to track changes to the icon theme. And as such, it can ensure that widgets can track when they need to reload icons. https://bugzilla.gnome.org/show_bug.cgi?id=743341
* css: Move icon properties to the endBenjamin Otte2015-01-201-37/+37
| | | | | | | | 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.
* css: Handle font-size changes properlyMatthias Clasen2014-12-231-1/+1
| | | | | | | | 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"
* styleproperties: Remove header where it's not usedBenjamin Otte2014-10-241-1/+0
|
* css: Add "-gtk-icon-source: builtin"Benjamin Otte2014-10-211-2/+13
| | | | | | ... 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.
* css: Queue resize for properties that affect clipBenjamin Otte2014-10-031-1/+1
| | | | | | | | This fixes shadows that are animated not updating the clip of the widget they are drawn on. An example of this are the buttons in the CSS shadows example in gtk-demo. Reftest included
* css: Have finer-grained definitions for effects of CSS propsBenjamin Otte2014-10-031-61/+133
| | | | | | This adds the GtkCssAffects enum and implements it for all style properties. So far, this is not exposed outside of the implementation file.
* Move gtkthemingengine to deprecated directoryMatthias Clasen2014-08-291-1/+2
| | | | This is the place for wholly-deprecated sources.
* css: Implement font-stretchEmmanuele Bassi2014-08-281-0/+36
| | | | | | | | | | | | | | 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
* themingengine: DeprecateBenjamin Otte2014-08-161-0/+4
|
* css: Parse text-shadow values properlyBenjamin Otte2014-06-101-2/+9
| | | | | | We used to accept the same syntax for text-shadow and icon-shadow as we accept for box-shadow. However, box-shadow does accept a spread and the inset keyword while the others should not.
* widget: Include box-shadow in the clipBenjamin Otte2014-05-241-1/+1
| | | | This allows all widgets that implement clip to use box shadows.
* spinner: Implement clipBenjamin Otte2014-05-241-1/+1
| | | | | We now allow you to gtk-icon-transform() the spinner outside of the spinners allocation.
* css: Add a -gtk-icon-style propertyBenjamin Otte2014-05-141-0/+20
| | | | | | | | | | | | | 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 -gtk-icon-transform propertyBenjamin Otte2014-05-141-2/+18
| | | | | This property allows transforming icons and is mainly intended to be used for spinner animations.
* css: Add -gtk-icon-source propertyBenjamin Otte2014-05-141-0/+8
| | | | | This is to be used for rendering icon content via CSS, such as spinners or checkboxes.
* css: add properties for outline-radiusCosimo Cecchi2014-05-011-0/+37
| | | | | | Both a shorthand and individual properties. This is not officially part of the CSS standard, but there's precedence for it at least in Mozilla: https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius
* css: Add a GtkCssValue for GtkCssImageEffectCosimo Cecchi2013-08-201-0/+20
| | | | | | | 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
* Make key themes work againMatthias Clasen2013-05-081-1/+1
| | | | | | | This was inadvertedly broken in commit 44ba5d253f5bbda2d5a42c58218ad2aa318256f4. Thanks to Matthew Francis for tracking this down and providing a fix in https://bugzilla.gnome.org/show_bug.cgi?id=699901
* Don't return FALSE from a non-boolean functionMatthias Clasen2013-03-261-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=696608
* css: Support opacityAlexander Larsson2013-02-071-0/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687842
* css: Add _gtk_css_style_property_affects_fontAlexander Larsson2012-12-061-6/+8
| | | | This checks if a style_update affects the font.
* cssvalue: Parse font sizes properlyBenjamin Otte2012-12-011-8/+5
| | | | | 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-2/+6
| | | | | | | | 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.
* cssstyleproperty: Don't mark border width properties as NO_RESIZEBenjamin Otte2012-11-301-5/+5
| | | | | I was to overeager when marking properties in 66d22f101d32630aa3f030585a948d17deb91f4a apparently.
* styleproperty: Mark properties as not needing resizesBenjamin Otte2012-11-301-50/+52
|
* styleproperty: Use _gtk_css_initial_value_get()Benjamin Otte2012-11-251-1/+2
| | | | See previous commit(s).
* symboliccolor: Remove extra includesBenjamin Otte2012-11-251-1/+1
| | | | That header was included in way too many places.
* cssstyleproperty: Replace symbolic colors with GtkCssColorValueBenjamin Otte2012-11-081-32/+9
|
* cssstyleproperty: Add animation propertiesBenjamin Otte2012-09-171-1/+137
|
* cssvalue: Make the array parser no longer parse "none"Benjamin Otte2012-09-031-10/+10
| | | | Arrays that support it, handle it themselves.
* css: Redo bindings parsingBenjamin Otte2012-09-031-8/+22
| | | | | | I want to get away from the ability to have 0-length arrays, all css arrays are single element. Even if the element is "none", it is still a "none" element.
* cssstyleproperty: Don't set print or compute vfuncs anymoreBenjamin Otte2012-08-281-114/+0
| | | | Nobody does that these days.
* cssstyleproperty: Remove all useless compute vfuncsBenjamin Otte2012-08-281-147/+35
| | | | | Now that we call _compute() by default, we don't need any special cases anymore that do the same thing.