FS#7294 - Use PNGs for buttons
Opened by Jonas Häggqvist (rasher) - Tuesday, 12 June 2007, 14:45 GMT
Last edited by Jonas Häggqvist (rasher) - Saturday, 23 June 2007, 02:40 GMT
This 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.
Saturday, 23 June 2007, 02:40 GMT
Reason for closing: Accepted
Additional comments about closing: Added to SVN (in a proper version) it seems.