Re: [Maemo App Dev]How to make my app UI different
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 [EMAIL PROTECTED] 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* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers // Tapani Pälli -- Software Engineer Open Source Software Operations ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
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. On 2/18/08, Bin Chen [EMAIL PROTECTED] wrote: On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] 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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
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* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers // Tapani Pälli -- Software Engineer Open Source Software Operations ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
On Mon, 2008-02-18 at 22:01 +0800, 陈凯 wrote: 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~ Why would you want to make your application look and feel different from every other application? An integrated system where all of the applications for a coherent whole is far easier to use than one where every application has buttons with different colours and fonts. Ross -- Ross Burton mail: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] www: http://www.burtonini.com./ PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
Ross Burton wrote: Why would you want to make your application look and feel different from every other application? An integrated system where all of the applications for a coherent whole is far easier to use than one where every application has buttons with different colours and fonts. Exactly. Also think about themes, user can choose from more default themes or have even custom theme (like black one) and your buttons or whatever will look completely wrong and may be not even readable. Will you test your application with every theme available? ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
[Maemo App Dev]How to make my app UI different
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~ Chenkai ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: [Maemo App Dev]How to make my app UI different
On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] 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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers