Support and General Use > Theming and Appearance Customization

Album Art in status bar?

<< < (2/5) > >>

MrMuh:
Hm, I don't know why, but I got the problem solved by having an empty line between %Vi and %Vl. My code looks no as follows:

--- Code: ---#Menu Check
%?cs<%Vd(m)%?C<%Vd(aa)%VI(Ayes)|%VI(Ano)>|%Vd(w)%VI(Ano)|%Vd(r)%VI(Ano)|%Vd(f)%VI(Ano)|%Vd(p)%VI(Ano)>

#UI Viewport
%Vi(Ano,0,24,-,-,1)

#UI Viewport, Album Art present
%Vi(Ayes,0,24,160,-,1)

%Vl(aa,160,24,160,-,1)
%Cl(-28,0,216,216,c,t)%Cd
--- End code ---
Now I wonder, if there exist any nested viewports in rockbox. Is it better to have always an empty line between viewports?

@Giova: You have to put the line displaying the viewports before the lines loading the viewports:

--- Code: ---#main viewport
%?if(%mp,=,1)<%VI(s)|%VI(p)>
%Vi(p,0,70,240,248,-)
%Vi(s,0,70,240,275,-)
--- End code ---

Giova:
Oh yes!
Solved with your suggestions:

--- Code: ---#main viewport
%?if(%mp,=,1)<%VI(s)|%VI(p)>

%Vi(p,0,70,240,248,-)

%Vi(s,0,70,240,275,-)
--- End code ---

MrMuh:
Ok, this doesn't have exactly sth. to do with the album art, but I have problems with the UI viewports.
I do want a different UI viewport for the recording and playlist screen. So I tried this:

--- Code: ---%?cs<%?C<%VI(Ayes)%Vd(aa)|%VI(Ano)>||%VI(rec)%Vd(r)||%VI(pl)%Vd(p)>
--- End code ---
I declared the %Vi and the %Vl viewports later in the code but the UI viewports %VI(rec) and %VI(pl) are not loaded, whereas %VI(Ayes) and %VI(Ano) works fine, the conditional viewports %Vd(r) and %Vd(p) are also present on the corresponding screens...
What's wrong with this code? Thanks in advance!

MrMuh:

--- Quote from: MrMuh on September 28, 2010, 04:47:32 AM ---Ok, this doesn't have exactly sth. to do with the album art, but I have problems with the UI viewports.
I do want a different UI viewport for the recording and playlist screen. So I tried this:

--- Code: ---%?cs<%?C<%VI(Ayes)%Vd(aa)|%VI(Ano)>||%VI(rec)%Vd(r)||%VI(pl)%Vd(p)>
--- End code ---
I declared the %Vi and the %Vl viewports later in the code but the UI viewports %VI(rec) and %VI(pl) are not loaded, whereas %VI(Ayes) and %VI(Ano) works fine, the conditional viewports %Vd(r) and %Vd(p) are also present on the corresponding screens...
What's wrong with this code? Thanks in advance!

--- End quote ---
no one? I experimented a bit for myself and it seems the UI viewports only react to the menu screen, neither the recording nor the playlist screen. It seems to be a bug (or a feature? ;) ). Would be nice, if someone can confirm this.

Avalon:
I tried the following:

%?cs<%Vi(-,1,17,219,110,1)|%Vi(-,1,17,219,110,1)|%Vi(-,1,30,219,97,1)|%Vi(-,1,60,219,50,1)|%Vi(-,1,17,219,110,1)>

I had hoped that I could nest the UI definition in the screen conditional directly.

This command line was rejected outright as an error.

I also tried defining 5 UI view ports %Vi with unique labels prior to the %?cs.  Then within the %?cs I used %VI(label) for each of the screens.

This approach did not generate errors, but the first UI definition was used for all screens.  It looks like the other 4 definitions were ignored.  It seems that only 1 UI can be defined and it is used for all sbs screens.

If someone has a solution to this or can indicate how the code is written, I would appreciate it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version