[maemo-developers] [Maemo App Dev]How to make my app UI different
From: 陈凯 chenkai036 at gmail.comDate: Sat Mar 8 15:35:00 EET 2008
- Previous message: Launch image to increase feeling of responsiveness (a la iPhone)
- Next message: [Maemo App Dev] gtk.ToolItem not shown unless hildon.window.show_all() called
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I am sorry for not replying the letter soon. Thanks for all the advice and suggestions you have given me. They are very helpful. Eventually I have learned how to changed the appearance of a widget in an application using gtkrc file and some nice pictures. In my code, I just called gtk_rc_add_default_file() the parse the rc file. I usually call the function before any widget should be created or shown, say the very beginning of my code. But sometimes the rc file would not be loaded without any exception feedback to console. I have no idea on how to handle the situation. Does any one have the same problem? I think the following links are useful for a GTK+ newbiee if you mean to change the appearance of the widget. some basic concept goes here: http://live.gnome.org/GnomeArt/Tutorials/GtkThemes http://orford.org/gtk/ a piece of README on "sapwood", a theme engine that maemo uses: https://stage.maemo.org/svn/maemo/projects/haf/trunk/sapwood/README detailed in theme engine: http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html API related to GTK+ theme and resources http://library.gnome.org/devel/gtk/unstable/gtk-Resource-Files.html http://library.gnome.org/devel/gtk/unstable/GtkStyle.html On 2/22/08, Tapani Pälli <tapani.palli at nokia.com> wrote: > > Hello; > > > ext 陈凯 wrote: > > Thanks for your advice. Though maemo is based on GTK+, I think it is a > > little bit different. I wrote a simple app and used gtkrc to change > > the color of a button when being active. In ubuntu it works fine while > > it has no effect when ported to maemo( a default style button is shown > > instead ). I wish I didn't miss something important in gtkrc. Or is > > there some other alternative way to achieve widget style > > customizatino? Wish to hear your reply, thanks in advance. > > > > > You might want to file a bug about this. I've noticed also that using > gtk_rc_parse_string() does not seem to work for some reason, on desktop > it can be used to change colors. > > > > > On 2/18/08, *Bin Chen* <binary.chen at gmail.com > > > <mailto:binary.chen at gmail.com>> wrote: > > > > On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 <chenkai036 at gmail.com > > > <mailto:chenkai036 at gmail.com>> wrote: > > > Hi, folks! > > > > > > I am a newbiee on Maemo and have some experience in app dev. > > Though maemo > > > platform provides a great amount of amazing UI looking, I would > > like my app > > > looks somewhat different from ordinary maemo app. A cool example > > is Skype > > > for maemo platform. I wonder how to make that effect or > > something like > > > that. Could you please give me some hint, or where to start ? > > Thanks in > > > advance~ > > > > > > Just a hint, you may use gtkrc to customize it.(maemo is gtk+ based > so > > I think this method works) > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > maemo-developers mailing list > > maemo-developers at maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > > // Tapani Pälli > > > -- > Software Engineer > Open Source Software Operations > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080308/c9ebff18/attachment.htm
- Previous message: Launch image to increase feeling of responsiveness (a la iPhone)
- Next message: [Maemo App Dev] gtk.ToolItem not shown unless hildon.window.show_all() called
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]