This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7294 - Use PNGs for buttons
Attached to Project:
Rockbox
Opened by Jonas Häggqvist (rasher) - Tuesday, 12 June 2007, 16:45 GMT+2
Last edited by Jonas Häggqvist (rasher) - Saturday, 23 June 2007, 04:40 GMT+2
Opened by Jonas Häggqvist (rasher) - Tuesday, 12 June 2007, 16:45 GMT+2
Last edited by Jonas Häggqvist (rasher) - Saturday, 23 June 2007, 04:40 GMT+2
|
DetailsThis patch changes Rockbox Utility to use PNGs for the buttons. This has the advantage of allowing much nicer graphics. Right now, the image loading is implemented using external files, but it should certainly be possible to embed them in the executable.
http://wxwidgets.org/wiki/index.php/Embedding_PNG_Images Explains how to convert PNGs to C and then use them like that. http://www.wxwidgets.org/manuals/stable/wx_wxbitmap.html#wxbitmap Says that images can either be loaded from file or a resource, but I don't know how resources work. The next problem is I've taken icons from the Tango Desktop project. These icons are available under the Creative Commons Attribution-ShareAlike 2.5 License, which is not GPL compatible so more suitable icons should be found for embedding into the executable. |
This task depends upon
Closed by Jonas Häggqvist (rasher)
Saturday, 23 June 2007, 04:40 GMT+2
Reason for closing: Accepted
Additional comments about closing: Added to SVN (in a proper version) it seems.
Saturday, 23 June 2007, 04:40 GMT+2
Reason for closing: Accepted
Additional comments about closing: Added to SVN (in a proper version) it seems.
Of course, using the Doom logo is probably not too wise either...
Afaik loading images from resources is only possible in Winodows, so we should convert those images to C with the bin2c program as it is explained in the first link you gave.
And we should change the doom image..
The best solution would probably be to convert the PNGs at build-time, so the PNGs could be kept as the originals.
For the doom image, I suppose we could use a generic "games" icon from the gnome set (I believe it's a joystick).