Re: confusion regarding drawing of widgets

Benjamin Berg <[email protected]>
Newsgroups gmane.comp.gnome.themes
Message-ID <1198674966.3888.21.camel@localhost>
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

_______________________________________________
gnome-themes-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-themes-list
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHclQWJddvdAxOva4RArabAJ0SYlsTY19nrYVShb3sGdgQL2xztgCfe0ba
74Z4vPrY1Ii2bokgt3AStZk=
=YEYd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.