Gustavo Sverzut Barbieri wrote:
>> The effect was that I didn't get text or icons
>> here. This is bad.
>
> Really? In my tests I get text when no image were found.
Soory, I got the text, but 30 pixel are not enough.
>> What I did to fix it: First, I moved back to percent values in the
>> table. To avoid hardcoding strings in the skin, I added a pattern to
>> switch to icon mode: ICON_<POSITION>_<IMAGE>_<TEXT>. Only if the text
>> matches that pattern (ICON_ and 3 _ in the text), a new function will
>> come active: search if image exists, if not, use the text. This makes
>> it possible to use the text if the image doesn't exists. To make it
>> look better, POSITION can be used to CENTER the image/text or put it
>> to the RIGHT side. The code searches for the image based on the
>> icon_dir set, no need to add it to the fxd file.
>
> Good approach. I used values in the fxd because we already do that for
> skins, so I wanted to be coherent. But since we're using that pattern,
> maybe we don't need to.
> However we must document that in the skin, so when one want to
> develop a new skin he will know it needs XYZ.png image.
Yes, the next on my TODO list is a developer howto.
Dischi
--
PEOPLE'S WHOLE LIVES *DO* PASS IN FRONT OF THEIR EYES BEFORE THEY DIE. THE
PROCESS IS CALLED 'LIVING'.
-- (Terry Pratchett, The Last Continent)
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel