[maemo-developers] Gtk widget background, gradient, or image possible ?

From: Benoît HERVIER khertan at khertan.net
Date: Thu Dec 4 13:57:02 EET 2008
Hum, in fact i already don't use a real Gtk Toolbar as i don't like
the hildon toolbar ... :) so i  make my own with a bit of gtk.Button,
gtk.Frame, gtk.Alignment, Vbox and HBox and some piece of gtk.Image
and gtk Label in the button container...

So theming by touching rc ... will make things for all other widgets ...

No other way to put gradient in bg instead of a sample color ?

ps : And no, setting 256 frame which have their own color isn't a
solution for a gradient :)

2008/12/4 Markku Vire <markku.vire at movial.fi>:
>
> Hi,
>
> The background of the toolbar itself can be changed, since GtkToolbar
> calls the theme engine to paint the background. So, everything good at
> this point.
>
> The bad thing is that Maemo environment usually embeds the
> toolbar into HildonWindow and the toolbar borders that you can see are
> part of the HildonWindow theme. So, in order to theme the whole bottom
> bar, you need an application specific theme that changes HildonWindow
> and GtkToolbar themes. Of course this approach would work only with one
> desktopwide theme at a time :(
>
> Cheers,
>
> -Markku-
>
> Benoît HERVIER wrote:
>> Hi,
>>
>> While i'm trying to design a new UI for the next version of mCalendar,
>> i got some question without answer at this time
>>
>> I've done an UI with some background on the toolbar for example. But
>> to have somethings more "glossy". I would like to do a gradient for
>> the background instead of a unique color. Do you a way to do that ?
>>
>> Thanks
>
>



-- 
Benoît HERVIER - http://khertan.net/
More information about the maemo-developers mailing list