gtk-css-engine 0.2 available

October 1st, 2008

¿Where?

The CSS Theme Engine for Gtk+, Version 0.1 is available for downloaded:

ftp://ftp.gnome.org/pub/GNOME/sources/gtk-css-engine/0.2/

4268420614b57a8e54a40e7fea3ea22c  gtk-css-engine-0.2.0.tar.bz2
c02e05a4d5afa2be54814ff9f2100dba  gtk-css-engine-0.2.0.tar.gz

¿What?

The Cascading Style Sheet Theme Engine for the GNU is Not UNIX Image Manipulation Program Tool Kit Plus (commonly just “CSS engine”) is an experimental theme engine reading styling information from CSS rather than the traditional gtkrc format.

Because of the fledgling status this project is still in, desktop-wide use of CSS themes is not supported yet. Currently The Widget Factory [1] is the recommended way for working with the CSS engine. The focus of this release is on basic CSS support.

Features:

  • Border radius.
  • Background image: -attachment, -position, -repeat, -size.
  • External tool `css2gtkrc` for extracting gtkrc information from stylesheets.

Theme:

  • Rounded corners.
  • CSS compliant background-image settings.
  • Use actual borders for checks and options, make them use 100% of the allocated space.

Internals:

  • Create `color` property and use it for bg- and fg-color(in `block`, `style`, …).
  • More robust parsing, handle (some) invalid CSS.
  • Better stability, work around a problem in libcroco (b.g.o#553937).
  • Have an internal instance of `ccss_style_t` with default values, `ccss_style_init()` initialises the style to those. Then drawing functions don’t have to check for `NULL` pointers any more, or, at least not handle them functionally.

¿How?

The engine ships a forthcoming port of the “Gilouche” theme by Jakub Steiner and Garrett LeSage. A screenshot is avavailable at:

http://www.gnome.org/~robsta/gtk-css-engine/0.2/Gilouche-CSS-0.2.png

¿Who?

  • Andreas Nilsson: art.
  • Robert Staudinger: code.

¿When?

The release-date for the subsequent version has not been determined yet, but we are confident that 0.3 will be the first version supporting desktop-wide use. Please refer to the roadmap (TODO file) for details.

[1] http://www.stellingwerff.com/?page_id=10

4 Responses to “gtk-css-engine 0.2 available”

  1. Cygwin Ports maintainer Says:

    A couple of patches are needed:

    1) gtk-docs shouldn’t be installed if libccss isn’t installed:

    http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/gnome/gtk2.0-engines-css/0.2.0-gtk-doc.patch

    2) libccss isn’t linked against any libraries:

    http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/gnome/gtk2.0-engines-css/0.2.0-no-undefined.patch

  2. De l’esprit des thèmes GTK « bidouillages et crustacés Says:

    [...] qu’un moteur GTK va sortir et permettra la description de thèmes en CSS. Je vous invite à lire cet article et à suivre régulièrement l’affaire [...]

  3. rojtberg.net » Gnome3 Theme Says:

    [...] while I can not tell how the actual GTK Theme for Gnome3 will look like, I think I can say that It will use the GTK-CSS Engine which just made a first release. [...]

  4. campino2k » Webtechnologie auf dem Desktop - Die Zukunft mit Gnome3 Says:

    [...] Noch ist GNOME 3 ja weit weg, doch erste “Schlagzeilen” macht das Projekt schon: bei roitberg.net habe ich einen Screenshot von einem Gnome-Theme auf Basis der GTK-CSS-Engine gesehen. Den Blogeintrag und den Screenshot gibt’s beim GNOME Theming-Blog. [...]