Re: confusion regarding drawing of widgets



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.

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.

thanks for those links.

bye

Benjamin Berg wrote:
> 
> 
> On Mon, 2007-12-24 at 04:42 -0800, iluvlinux wrote:
>> hi
>> but how Gtk+ decides whether to draw using engine or GDK because when we
>> install gtk, both GDK and the default theme engine gets installed and
>> even
>> applications (mostly) do not specifically request for theme engine to be
>> used. 
>> bye
> 
> GTK+ does almost all widget drawing trough the engine (there maybe some
> exceptions). There is a buildin engine implemented inside GTK+ [1] that
> is used if no engine is specified by the theme.
> If the applications use the gtk_paint_* functions then the theme engine
> is used.
> 
> Benjamin
> 
> 
> [1] Technically engines override the GtkStyle class and override the
> style function implementation.
> 
>  
> _______________________________________________
> gnome-themes-list mailing list
> gnome-themes-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-themes-list
> 
> 

-- 
View this message in context: http://www.nabble.com/confusion-regarding-drawing-of-widgets-tp14486448p14501741.html
Sent from the Gnome - Themes mailing list archive at Nabble.com.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]