Support and General Use > Theming and Appearance Customization

Volume bar on now playing screen with Classic theme on Sana clip+

<< < (2/3) > >>

PDXmatt:

--- Quote from: gomezz on August 29, 2017, 06:41:50 AM ---TBH I only need to see the volume control setting when changing between different headphones (-15/-18) or external speaker (-3) to get a rough base setting.  After that it is all done by ear.  After all, there is a reason the best hi-fi kit does not have any markings on the volume control.  ;)

--- End quote ---

Yeah, I adjust it by ear a lot of the time. It's just nice to have it available and it makes it more like the original firmware, which won't play AAC files.

PDXmatt:
Something that's a little frustrating about the Clip+ is that text on the top part of the screen is yellow, and green on the rest. A big issue with this is on the top part of the screen the tail of a lowercase G will go under the yellow part and be colored differently.

PDXmatt:
I've been trying to edit the Classic theme's fps file by comparing it to Simplicity's fps, but it completely screws it up somehow. I don't know what I could be doing wrong. Classic:


--- Code: ---# BOTTOM LEFT
%V(0,48,-,-,0)
#
# play mode icon & progress bar
%?mp<|%xd(Aa)|%xd(Ab)|%xd(Ac)|%xd(Ad)>%pb(32,1,60,6,-)
--- End code ---

Simplicity:


--- Code: ---%V(0,48,93,-,0)
# (play mode icon & progress bar) or (volume bar if changing)
%?mv(1)<%xd(F)%pv(32,1,60,6,-)|%?mp<|%xd(Aa)|%xd(Ab)|%xd(Ac)|%xd(Ad)>%pb(32,1,60,6,-)>
--- End code ---

I add the part of simplicity's code that I'm almost positive refers to the volume bar to Classic's code, changing (F) to (E) because that's the letter I assigned to speaker.bmp at the top, which I copied to Classic's resource folder in the WPS folder. So now Classic's code looks like this:


--- Code: ---# BOTTOM LEFT
%V(0,48,-,-,0)
#
# play mode icon & progress bar or volume bar if changing
%?mv(1)<%xd(E)%pv(32,1,60,6,-)|%?mp<|%xd(Aa)|%xd(Ab)|%xd(Ac)|%xd(Ad)>%pb(32,1,60,6,-)
--- End code ---

Somehow this makes the now playing screen completely out of alignment, I admit I know very little about programing but it seems like what I'm doing should work.

Bilgus:
For PlusEsque:

If you downloaded the theme the volume bar code is already on your device see.. Device/.rockbox/wps/PlusEsque.wps it is also in the zipfile you downloaded from the themes site
relevant portions are %xl(D,volume10px.bmp,0,0,2); #Display Play/Volume Viewports; #VolLeft; #VolBar; #VolRight

for fonts see https://www.rockbox.org/wiki/CustomWPS#Fonts

I added this to the original PlusEsque.wps for you you'll need to change the font name to one that you like


--- Code: ---#PlusEsque, Bilgus

%wd

%xl(A,mode8px.bmp,0,0,6)

%xl(B,battery8px.bmp,0,0,2)

%xl(C,rptshuf8px.bmp,0,0,2)

%xl(D,volume10px.bmp,0,0,2)
%Fl(2,14-Terminus.fnt,64) #Track info font (fontId, filename,#glyphs)

#

# Shuffle

%?ps<%xd(Ca)>

#

# Repeat

%V(17,0,11,8,0)

%?mm<|%xd(Cb)>

#

#Lock Icon

%V(-27,0,8,8,0)

 %?mh<%xd(Aa)>

#

# Playlist position & Vol db

%V(31,0,-31,-,0)

%?mv<%ac%pv|%ac%pp/%pe>

#

#Display Play/Volume Viewports

%?mv<%Vd(v)%Vd(b)|%Vd(p)>

#

# Battery

%V(-18,0,18,16,0)

%?St(battery display)<%?bp<%t(5)%xd(Bb);%t(5)+%bl|%xd(Ba)%Vd(g)>|%Vd(b)>#load battery icon or numeric value

%Vl(g,-15,2,12,5,0)#Battery level bar

%bl(0,0,11,4,invert,noborder)

#

#Numeric battery

%Vl(b,-18,0,18,16,0)

%?bp<%s+%bl|%bl>

#

# Track info

%V(0,17,128,27,2) #(x,y,w,h,fontid), uses font ID = 2

%s%ac%?it<%it|%fn>

%s%ac%?ia<%ia|Unknown Artist>

#

# Playing mode

%Vl(p,5,54,-,-,0)

%?mp<%xd(Ab)|%xd(Ac)|%xd(Ad)|%xd(Ae)|%xd(Af)>

#

#Progress bar

%pb(10,1,81,6)

#

# Time elapsed

%Vl(p,98,54,-,-,0)

%?if(%pc, >, 599)<%pc|0%pc>

#

#VolLeft

%Vl(v,0,54,-,-,0)

%xd(Da)

#

#VolBar

%pv(10,2,103,6)

#

# VolRight

%Vl(v,-10,54,-,-,0)

%xd(Db)

--- End code ---

PDXmatt:

--- Quote from: Bilgus on September 03, 2017, 06:04:24 PM ---For PlusEsque:

If you downloaded the theme the volume bar code is already on your device see.. Device/.rockbox/wps/PlusEsque.wps it is also in the zipfile you downloaded from the themes site
relevant portions are %xl(D,volume10px.bmp,0,0,2); #Display Play/Volume Viewports; #VolLeft; #VolBar; #VolRight

for fonts see https://www.rockbox.org/wiki/CustomWPS#Fonts

I added this to the original PlusEsque.wps for you you'll need to change the font name to one that you like


--- Code: ---#PlusEsque, Bilgus

%wd

%xl(A,mode8px.bmp,0,0,6)

%xl(B,battery8px.bmp,0,0,2)

%xl(C,rptshuf8px.bmp,0,0,2)

%xl(D,volume10px.bmp,0,0,2)
%Fl(2,14-Terminus.fnt,64) #Track info font (fontId, filename,#glyphs)

#

# Shuffle

%?ps<%xd(Ca)>

#

# Repeat

%V(17,0,11,8,0)

%?mm<|%xd(Cb)>

#

#Lock Icon

%V(-27,0,8,8,0)

 %?mh<%xd(Aa)>

#

# Playlist position & Vol db

%V(31,0,-31,-,0)

%?mv<%ac%pv|%ac%pp/%pe>

#

#Display Play/Volume Viewports

%?mv<%Vd(v)%Vd(b)|%Vd(p)>

#

# Battery

%V(-18,0,18,16,0)

%?St(battery display)<%?bp<%t(5)%xd(Bb);%t(5)+%bl|%xd(Ba)%Vd(g)>|%Vd(b)>#load battery icon or numeric value

%Vl(g,-15,2,12,5,0)#Battery level bar

%bl(0,0,11,4,invert,noborder)

#

#Numeric battery

%Vl(b,-18,0,18,16,0)

%?bp<%s+%bl|%bl>

#

# Track info

%V(0,17,128,27,2) #(x,y,w,h,fontid), uses font ID = 2

%s%ac%?it<%it|%fn>

%s%ac%?ia<%ia|Unknown Artist>

#

# Playing mode

%Vl(p,5,54,-,-,0)

%?mp<%xd(Ab)|%xd(Ac)|%xd(Ad)|%xd(Ae)|%xd(Af)>

#

#Progress bar

%pb(10,1,81,6)

#

# Time elapsed

%Vl(p,98,54,-,-,0)

%?if(%pc, >, 599)<%pc|0%pc>

#

#VolLeft

%Vl(v,0,54,-,-,0)

%xd(Da)

#

#VolBar

%pv(10,2,103,6)

#

# VolRight

%Vl(v,-10,54,-,-,0)

%xd(Db)

--- End code ---

--- End quote ---

I tried changing PlusEsque's code to what you provided, changing the font for 12-Nimbus.fnt, which is what Classic uses, so my code looks like this:


--- Code: ---#PlusEsque, Bilgus

%wd

%xl(A,mode8px.bmp,0,0,6)

%xl(B,battery8px.bmp,0,0,2)

%xl(C,rptshuf8px.bmp,0,0,2)

%xl(D,volume10px.bmp,0,0,2)
%Fl(2,12-Nimbus.fnt,64) #Track info font (fontId, filename,#glyphs)

#

# Shuffle

%?ps<%xd(Ca)>

#

# Repeat

%V(17,0,11,8,0)

%?mm<|%xd(Cb)>

#

#Lock Icon

%V(-27,0,8,8,0)

 %?mh<%xd(Aa)>

#

# Playlist position & Vol db

%V(31,0,-31,-,0)

%?mv<%ac%pv|%ac%pp/%pe>

#

#Display Play/Volume Viewports

%?mv<%Vd(v)%Vd(b)|%Vd(p)>

#

# Battery

%V(-18,0,18,16,0)

%?St(battery display)<%?bp<%t(5)%xd(Bb);%t(5)+%bl|%xd(Ba)%Vd(g)>|%Vd(b)>#load battery icon or numeric value

%Vl(g,-15,2,12,5,0)#Battery level bar

%bl(0,0,11,4,invert,noborder)

#

#Numeric battery

%Vl(b,-18,0,18,16,0)

%?bp<%s+%bl|%bl>

#

# Track info

%V(0,17,128,27,2) #(x,y,w,h,fontid), uses font ID = 2

%s%ac%?it<%it|%fn>

%s%ac%?ia<%ia|Unknown Artist>

#

# Playing mode

%Vl(p,5,54,-,-,0)

%?mp<%xd(Ab)|%xd(Ac)|%xd(Ad)|%xd(Ae)|%xd(Af)>

#

#Progress bar

%pb(10,1,81,6)

#

# Time elapsed

%Vl(p,98,54,-,-,0)

%?if(%pc, >, 599)<%pc|0%pc>

#

#VolLeft

%Vl(v,0,54,-,-,0)

%xd(Da)

#

#VolBar

%pv(10,2,103,6)

#

# VolRight

%Vl(v,-10,54,-,-,0)

%xd(Db)
%Vl(p,5,54,-,-,0)
%?mp<%xd(Ab)|%xd(Ac)|%xd(Ad)|%xd(Ae)|%xd(Af)>
#
#Progress bar
%pb(10,1,81,6)
#
# Time elapsed
%Vl(p,98,54,-,-,0)
%?if(%pc, >, 599)<%pc|0%pc>
#
#VolLeft
%Vl(v,0,54,-,-,0)
%xd(Da)
#
#VolBar
%pv(10,2,103,6)
#
# VolRight
%Vl(v,-10,54,-,-,0)
%xd(Db)

--- End code ---

The font changed, but only the song title shows up, the artist isn't displayed at all and the remaining time numbers go off the screen.
I really do appreciate your help, I just don't understand what I'm doing wrong.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version