On Wed, 2007-12-26 at 04:36 -0800, iluvlinux wrote:
> hi
>
> that is to say i can use any library in the theme engine provided it
> can draw on x11 or directfb, but it should use the GdkWindow for drawing the
> stuff.
Yes. One could just support X11 and get the X11 window/drawable ID with
gdk_x11_drawable_get_xid. This is probably a not a good idea in most
cases as the engine is not portable then, but it should work.
> Also i am not clear about the following lines from Aurora theme
>
> 212 style "theme-tree" = "theme-default"
> 213 {
> 214 xthickness = 2
> 215 ythickness = 1
> 216
> 217 GtkWidget::focus-padding = 0
> 218
> 219 bg[NORMAL] = shade (1.1,@bg_color)
> 220 bg[PRELIGHT] = shade (1.75,@bg_color)
> 221 bg[ACTIVE] = mix(0.65, shade (1.1,@bg_color),
> @selected_bg_color)
> 222
> 223 }
>
> What does "shade" and "mix" corresponds to? Are they engine specific?
> Obviously it means that scale the bg color with scaling factor of 1.1, but i
> am not able to figure out what parameter or structure member of engine is
> getting affected.
These are symbolic colors which are new in GTK+ 2.12, they are not
engine specific. Some information (though maybe not quite up to date and
correct right now, need to check that):
http://live.gnome.org/GnomeArt/Tutorials/GtkThemes/SymbolicColors
The symbolic colors are all done inside GTK+. The "shade" operation
makes the "bg_color" symbolic color lighter by 1.1.
The main advantage is that the user can change the colors with the
gnome-appearance-properties. For this to work there is a set of symbolic
colors that should be used in GNOME (see the URL, going to update it
now).
> thanks for those links.
Benjamin
Attachment:
signature.asc
Description: This is a digitally signed message part