On Sat, Nov 29, 2008 at 1:17 PM, Robert Staudinger <
[EMAIL PROTECTED]> wrote:
>
> Right, and I'm not sure how to best do that. The problem is that gtk
> draws the focus indicator in a separate operation.
>
> Something like this may work though, assume "rect(t, r, b, l)" gives
> the position of the button image without `aura':
>
> /* Draw the button itself, from the image that includes the `aura'. */
> GtkButton[has-default=true][has-focus=true] {
> border-image: url(theme.svg#button-default-focused) 8 9 6 9;
> -moz-image-region: rect(t, r, b, l);
> }
>
> /* Draw the `aura' (aka focus indicator). */
> GtkButton[has-default=true][has-focus=true] > gtk-focus-indicator {
> border-image: url(theme.svg#button-default-focused) 8 9 6 9;
> clip: rect(t, r, b, l);
> }
>
> Need to try and find out how it works out. Also `-moz-image-region'
> [1] and `clip' are not yet supported in libccss.
>
> [1] https://developer.mozilla.org/en/CSS/-moz-image-region
>
> - Rob
>
>
I wish I knew CSS so that I can make a theme using the new engine. It seems
to handle these default things good as well as it may turn out to be very
feature rich after some months of theme experiments.
Anton
--
ubuntu-art mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-art