Carlos Garnacho
765f653df6
GtkSymbolicColor: Only require styleproperties when resolving named colors.
...
It is not necessary for resolving colors based on literals,
so be a bit less strict here.
2010-12-04 15:38:40 +01:00
Carlos Garnacho
525963d74d
GtkSymbolicColor: convert to/from hls when shading.
...
This makes shading equal to GtkStyle's.
2010-12-04 15:38:39 +01:00
Carlos Garnacho
3ea9568c20
GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
2010-12-04 15:38:39 +01:00
Carlos Garnacho
af20ba6103
GtkSymbolicColor: Take const GdkRGBA in new_literal().
2010-12-04 15:38:34 +01:00
Carlos Garnacho
4acc20abc1
s/GtkStyleSet/GtkStyleProperties/
...
The former name had oddities such as gtk_style_set_set() and such,
so the new name is nicer in that regard and not much longer.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
ca44965f33
GtkSymbolicColor: Add gtk_symbolic_color_new_alpha()
...
This function modifies the alpha channel of a color, multiplying
it by a factor.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
4ca3b5071e
GtkSymbolicColor: Initialize alpha when resolving shades.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
490d59f045
Do not shade alpha values.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
4e02218f52
Use GdkRGBA all around in GtkStyleContext.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
a79626b7fb
Add theming docs
...
Both API and file format is documented, there's still missing
a migration doc though.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
88a3c2daae
GtkGradient: Handle symbolic gradients.
...
The css parser has been modified to parse correctly radial gradients:
background-image: -gtk-gradient (radial,
center center, 0,
center center, 0.8,
from (#000 ), to (#fff));
The theming engine has been modified to correctly animate these,
as well as transitions between different pattern types.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
d8187b34bb
GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
2010-12-04 15:38:17 +01:00
Carlos Garnacho
142a72637d
Add GtkGradient.
...
This type defines a gradient between 2 symbolic colors, with any number
of color stop between these. At the moment it has been put besides
GtkSymbolicColor, although should be completely private, it will likely
need extending in the future for radial gradients.
At some point, it maybe should also be used for images, so painting
both a gradient and an image is consistent.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
c9d626523d
Remove gtkalias from style context code.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
0ce649e965
Plug a bunch of leaks.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
b8fb2d1a36
GtkSymbolicColor: Add method to resolve to a GdkColor.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
7094213df9
Add GtkSymbolicColor.
...
This is a small boxed struct used to store symbolic colors so they
can be resolved at a later point.
2010-12-04 15:37:14 +01:00