| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
The previous renaming commit was incomplete, so here we go again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
-gtk-icontheme: "oxygen" works now.
This is a very crude implementation. It's meant for testing only.
|
|
|
|
| |
This is a property for icons, so we should name it as such.
|
|
|
|
|
|
| |
This is not a standard CSS property, so rename it to
-gtk-key-bindings. We still support the old name, with a
deprecation warning.
|
|
|
|
|
|
| |
This is not a standard CSS property, so rename it to
-gtk-icon-shadow. We still support the old name, with a
deprecation warning.
|
| |
|
|
|
|
|
| |
The support is limited to underline single, double and wavy, which
is what pango has today.
|
| |
|
| |
|
|
|
|
|
| |
Support letter-spacing CSS property on GtkLabel.
Reftest is included.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
... and GtkCssStyleProperty::affects-font properties. Code now uses
GtkCssStyleProperty::affects instead.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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"
|
| |
|
|
|
|
|
|
| |
... 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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This adds the GtkCssAffects enum and implements it for all style
properties.
So far, this is not exposed outside of the implementation file.
|
|
|
|
| |
This is the place for wholly-deprecated sources.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This allows all widgets that implement clip to use box shadows.
|
|
|
|
|
| |
We now allow you to gtk-icon-transform() the spinner outside of the
spinners allocation.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This property allows transforming icons and is mainly intended to be
used for spinner animations.
|
|
|
|
|
| |
This is to be used for rendering icon content via CSS, such as spinners
or checkboxes.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=696608
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=687842
|
|
|
|
| |
This checks if a style_update affects the font.
|
|
|
|
|
| |
As the last CSS property, font-size now is a proper number (when it's
not a keyword).
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
I was to overeager when marking properties in
66d22f101d32630aa3f030585a948d17deb91f4a apparently.
|
| |
|
|
|
|
| |
See previous commit(s).
|
|
|
|
| |
That header was included in way too many places.
|
| |
|
| |
|
|
|
|
| |
Arrays that support it, handle it themselves.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Nobody does that these days.
|
|
|
|
|
| |
Now that we call _compute() by default, we don't need any special cases
anymore that do the same thing.
|