Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Album Art in status bar?
« previous next »
  • Print
Pages: [1] 2

Author Topic: Album Art in status bar?  (Read 4627 times)

Offline MrMuh

  • Member
  • *
  • Posts: 9
Album Art in status bar?
« on: September 26, 2010, 06:27:15 PM »
Hello,

I have recently discovered rockbox for my iPod 5G and I am really amazed. But I want to preserve the iPod skin (with a bit enhanced functionality, obviously ;)). Currently, I try to implement the album art in the status bar similar to this screen, but it doesn't show up...

currently, my code for this purpose is this:
Code: [Select]
%?C<%VI(Ayes)%Vd(aa)|%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(0,0,206,206,l,t)
%Cd

If an album art is present, the screen gets cut into half, but instead of showing the cover, I just see the white background. The cover itself is ok because it shows up in the wps.
Has anyone an idea?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Album Art in status bar?
« Reply #1 on: September 26, 2010, 06:34:56 PM »
you need to put the %Cd and %Cl into a normal (conditional) vewport, %Vi is only used to position the viewport, nothing in it actually gets drawn
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline MrMuh

  • Member
  • *
  • Posts: 9
Re: Album Art in status bar?
« Reply #2 on: September 26, 2010, 06:50:35 PM »
Aren't the %Cl and %Cd in the viewport %Vl(aa,160,24,160,-,1)?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Album Art in status bar?
« Reply #3 on: September 26, 2010, 06:53:48 PM »
ah, yes they are :p ok not sure why that isnt working then :/
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Giova

  • Member
  • *
  • Posts: 25
Re: Album Art in status bar?
« Reply #4 on: September 27, 2010, 04:32:24 AM »
I'm facing a similar issue with this code:
Code: [Select]
#main viewport
%Vi(p,0,70,240,248,-)
%Vi(s,0,70,240,275,-)
%?if(%mp,=,1)<%VI(s)|%VI(p)>
To me something is wrong with the infoviewport usage.
Logged

Offline MrMuh

  • Member
  • *
  • Posts: 9
Re: Album Art in status bar?
« Reply #5 on: September 27, 2010, 04:50:36 AM »
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: [Select]
#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
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: [Select]
#main viewport
%?if(%mp,=,1)<%VI(s)|%VI(p)>
%Vi(p,0,70,240,248,-)
%Vi(s,0,70,240,275,-)
Logged

Offline Giova

  • Member
  • *
  • Posts: 25
Re: Album Art in status bar?
« Reply #6 on: September 27, 2010, 05:07:25 AM »
Oh yes!
Solved with your suggestions:
Code: [Select]
#main viewport
%?if(%mp,=,1)<%VI(s)|%VI(p)>

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

%Vi(s,0,70,240,275,-)
Logged

Offline MrMuh

  • Member
  • *
  • Posts: 9
Re: Album Art in status bar?
« Reply #7 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: [Select]
%?cs<%?C<%VI(Ayes)%Vd(aa)|%VI(Ano)>||%VI(rec)%Vd(r)||%VI(pl)%Vd(p)>
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!
Logged

Offline MrMuh

  • Member
  • *
  • Posts: 9
Re: Album Art in status bar?
« Reply #8 on: September 30, 2010, 08:53:20 AM »
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: [Select]
%?cs<%?C<%VI(Ayes)%Vd(aa)|%VI(Ano)>||%VI(rec)%Vd(r)||%VI(pl)%Vd(p)>
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!
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.
Logged

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Album Art in status bar?
« Reply #9 on: September 30, 2010, 07:32:30 PM »
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.

Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Album Art in status bar?
« Reply #10 on: October 04, 2010, 05:31:16 PM »
you cant put Vi inside conditionals like that, they are used like normal viewport definitions... put %VI() inside the conditional
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Album Art in status bar?
« Reply #11 on: October 04, 2010, 06:18:38 PM »
I just tried the following:

#User Information viewports
%?cs<%VI(g)|%VI(g)|%VI(h)|%VI(i)|%VI(g)>

# Vi AREA (MENU)
%Vi(g,1,43,219,84,1)
%Vi(h,1,17,219,110,1)
%Vi(i,1,17,219,110,1)


The FM and Recording screens still used the first definition %Vi(g,1,43,219,84,1)

The latter two definitions appear to be ignored, at least using these instructions.

Any suggestions?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Album Art in status bar?
« Reply #12 on: October 04, 2010, 06:40:27 PM »
for some unknown reason you need to add a blank line between the Vi lines
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Album Art in status bar?
« Reply #13 on: October 04, 2010, 07:11:48 PM »
Thank you for the suggestion.  I read that post as well and have tried the following:

#User Information viewport Conditional
%?cs<%VI(g)|%VI(g)|%VI(h)|%VI(i)|%VI(g)>

#User Information Area Definitions
%Vi(g,1,43,200,84,1)

%Vi(h,1,17,219,110,1)

%Vi(i,1,17,219,110,1)

next code line

Unfortunately, this does not work for me.  All Screens with the exception of the WPS use the %Vi(g,1,43,200,84,1) definition. 

Is there anything wrong with my syntax or approach?

The UI Area Definition controls placement, width and height for all the screens, but does not appear to allow different UI Vewports for each screen as defined by the %?cs conditional.  At least, that is what is happening for me when I use the code listed above.
Logged

Offline Giova

  • Member
  • *
  • Posts: 25
Re: Album Art in status bar?
« Reply #14 on: October 05, 2010, 04:33:19 AM »
The Vi viewports (Info viewport) are displayed only in the sbs, you can't use info viewports in that way, you may need to use standard conditional viewports, VI Vd.
Take a look here: http://www.rockbox.org/wiki/CustomWPS#Viewports
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Album Art in status bar?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.085 seconds with 14 queries.