Support and General Use > Theming and Appearance Customization
Problem using progress bar
Astorga:
I edited my wps (removed all manual block bars and put formatting like %pb) and still doesn't work. Can someone try this and say what it shows?
Edit: Looks like I found the problem.
If I remove part of the wps, it loads what it has. It appears that WPS manager can't handle so many things in screen, and doesn't show anything (it explains the simulator showing no errors too).
So, I can't do anything to solve this, right?
audio-i:
--- Quote from: Astorga on August 23, 2010, 09:21:57 AM ---If I remove part of the wps, it loads what it has. It appears that WPS manager can't handle so many things in screen, and doesn't show anything (it explains the simulator showing no errors too).
So, I can't do anything to solve this, right?
--- End quote ---
If it's a skin buffer overflow problem (I haven't looked at your code), you could try to reduce the images size (actually trim them) and leave just the part that changes to load. It's a good idea to use the main WPS backdrop to contain the "initial states", e.g. make it including the shuffle-off icon and just loading the shuffle-on icon, instead of loading both the shuffle off and on icons. Also try to reduce if possible and optimize all elements that are loaded using the buffer like fonts, viewports, etc. You can always check the skin ram usage (also in the simulator) under system>rockbox info>skin ram usage (or something like that)
Astorga:
--- Quote from: audio-i on August 23, 2010, 03:25:48 PM ---
--- Quote from: Astorga on August 23, 2010, 09:21:57 AM ---If I remove part of the wps, it loads what it has. It appears that WPS manager can't handle so many things in screen, and doesn't show anything (it explains the simulator showing no errors too).
So, I can't do anything to solve this, right?
--- End quote ---
If it's a skin buffer overflow problem, you could try to reduce the images size (actually trim them) and leave just the part that changes to load. It's a good idea to use the main WPS backdrop to contain the "initial states", e.g. make it including the shuffle-off icon and just loading the shuffle-on icon, instead of loading both the shuffle off and on icons. Also try to reduce if possible and optimize all elements that are loaded using the buffer like fonts etc. You can always check the skin ram usage (also in the simulator) under system>rockbox info>skin ram usage (or something like that)
--- End quote ---
So, the skin doesn't load at all even in simulator, so I can't see the actual skin memory usage.
Also, my wps doesn't have any image, just text (it's included in my last post).
audio-i:
Try CheckWPS http://www.rockbox.org/wiki/CustomWPS#Tools or try commenting out progressively viewports until it loads and then check the skin ram usage.
Astorga:
--- Quote from: audio-i on August 23, 2010, 03:45:03 PM ---Try CheckWPS http://www.rockbox.org/wiki/CustomWPS#Tools or try commenting out progressively viewports until it loads and then check the skin ram usage.
--- End quote ---
After commenting 4 viewports, the wps worked in simulator (ver r27847) (even with volume and battery bars working perfectly), rockbox info shows the following:
Buffer: 30.5MB
Skin RAM usage: 16.4KB / 808KB
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version