Support and General Use > Theming and Appearance Customization
Problem using progress bar
Astorga:
I'm making a new theme for iPod Video. I tried to put progress bar in a viewport, and it showed up (weird, like if it fills downside up) in simulator, but not in DAP.
I tried to use %pb with parameters, but this way (using '-' in bitmap parameter) the progress bar disappear in both cases.
The wps code is this:
--- Code: ---#tag para retirar a barra de status default
%wd
%Cl(0,0,49,49)
#Background
%V(0,0,-,-,-)
â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â••â•’â•â•â•â•â•â•â•â•â••
│ ││ │
│ ││ NO │
│ ││ A.A. │
│ ││ │
└─────────────────────────────────────────┘└────────┘
┌────────────â”┌─────────────────────────────────────â”
├────────────┤├─────────────────────────────────────┤
└────────────┘└─────────────────────────────────────┘
┌──────────────────â”┌────────────â”┌─────────────────â”
├───┬─┬───┬─┬────┬─┤├────────────┤├─────────────────┤
└───┴─┴───┴─┴────┴─┘└────────────┘└─────────────────┘
┌──────────────────â”┌─────────â”┌────────────────────â”
├──────────────────┤├─────────┤├────────────────────┤
└──────────────────┘└─────────┘└────────────────────┘
#Info da música
%V(10,10,50,40,-)
Arquivo:
Titulo:
Artista:
Album:
%V(60,10,192,40,-)
%s%fp
%s%?it<%it|-------------------------------->
%s%?ia<%ia|-------------------------------->
%s%?id<%id|-------------------------------->
#Barra
#%V|0|220|-|-|-|-|-|
#%pb
#Album art
%V(263,7,51,48,-)
%?C<%Cd>
#volume
%V(4,66,75,8,-)
%acVolume(%pv)
%V(4,77,75,7,-)
%?pv<|▌|█|█▌|██|██▌|███|███▌|████|████▌|█████|█████▌|██████|██████▌|███████|███████▌|████████|████████▌|█████████|█████████▌|██████████|██████████▌|███████████|███████████▌|████████████|████████████▒>
#Peak Meter
%V(88,66,225,9,-)
%acVU
%V(87,76,227,9,-)
%pm
#Opções
%V(4,96,111,9,-)
%acOpções
%V(4,106,20,9,-)
Rep
%V(29,106,8,8,-)
%?mm<○|A|1|S|↔>
%V(40,106,20,9,-)
Rnd
%V(66,106,8,8,-)
%?ps<â—|â—‹>
%V(76,106,25,9,-)
Lock
%V(108,106,8,8,-)
%?mh<â—|â—‹>
#Bateria
%V(124,96,75,8,-)
%acBateria(%?bc<---|%bl>)
%V(124,107,75,7,-)
#%?bl<||▌|█|█▌|██|██▌|███|███▌|████|████▌|█████|█████▌|██████|██████▌|███████|███████▌|████████|████████▌|█████████|█████████▌|██████████|██████████▌|███████████|███████████▌|████████████|█████████████>
%bl(124,107,75,5,-)
#%bl|-|11|-|298|7|
#tipo de arquivo
%V(208,96,105,8,-)
%acFormato
%V(208,106,105,8,-)
%ac%fc - %fbkbps
#Nome e posição na playlist
%V(4,126,111,8,-)
%s%ac%?pn<%pn|Lista de músicas>
%V(4,136,111,8,-)
%s%acMúsica %pp de %pe
#Status da reprodução
%V(124,126,57,8,-)
%acStatus
%V(124,136,57,8,-)
%ac%?mp<Parado|Tocando|Pausado|Avançando|Recuando|Gravando|Grav.P.|FM|FM P.|>
#Tempo de Reprodução
%V(190,126,123,8,-)
%ac%pc/%pt
%V(190,136,123,8,-)
%pb
--- End code ---
Any suggestion?
My DAP is with current build, and the simulator is the last daily build.
Thanks.
JdGordon:
what is the problem? that it fills wrongly on the sim? or doesnt work on target?
Astorga:
Both things.
On the sim, it looks like it fills as if it's turned 90° counter-clockwise.
On the target, it does not appear at all.
Same thing with battery meter using %pb format.
Here, the bar is empty (just under song time):
Here, the bar is half full:
seani:
I've noticed this on target with a recent build for a C240 - the progress bar doesn't seem to update for the Cuda theme. I'd assumed it was because I'd introduced something with my other fiddling in the build, but perhaps not.
JdGordon:
what is the revision number of the sim and target builds? (system > rockbox info).
Also FYI, you can use the %bl and %pv tags exaclty like %pb so you dont have to draw those blocks. (And can I recommend adding a %Vp playlist viewer to that boring space at the bottom? :D )
Navigation
[0] Message Index
[#] Next page
Go to full version