Re: GTK Theme with aplication



José Maria Silveira Neto wrote:
I saw very beautiful themes at art.gnome.org.
I'm making a game and this theme would fit very well:
http://art.gnome.org/images/thumbnails/gtk2/GTK2-MardiGrasDeux-Shot.png

Just to note: I agree it's quite nice, but I cannot look at it for more
than some 30 seconds, it's just too bright.  I suggest that you don't put
this on your users unconditionally.

I can tie and theme with an application? In such way that an user that
haven't the theme could see the app with the theme  (in KDE or GNOME)?

If they don't have the theme: no.  You can ship it together with your
game though.  Then you'll need to do a little tricks with GTK+ resource
files to activate the theme, read the manual.  But again, I think this
is not a good default.

In principle, if you don't mind the exact appearance of the widgets,
you can just copy the theme colors etc. in your resource file.  Then
you only need something like

        gtk_rc_add_default_file (PACKAGE_DATA_DIR "/gtkrc");

right before the call to gtk_init() / gtk_init_check().  Of course,
you should install your `gtkrc' file to the proper place first.

Paul




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