[ubuntu-art] How should an Ubuntu button widget look like?

Anton Kerezov ankere at gmail.com
Sat Nov 29 13:53:16 GMT 2008


On Sat, Nov 29, 2008 at 1:17 PM, Robert Staudinger <
robert.staudinger at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-art/attachments/20081129/c02b9bbc/attachment.htm 


More information about the ubuntu-art mailing list