Support and General Use > Theming and Appearance Customization

default fm interface

(1/1)

TOTAL:
Hi

Is there a copy of rb's default fm player interface?

I would like to use the wavelength bar in gui of my own.

[Saint]:
Unless you have a 128x128 or 160x128 device (these targets actually do have a cabbiev2-*.fms file which you can find here), it probably doesn't work the way you're thinking it does.

The FM interface is hardcoded, and I would need to do a bit of digging to find it instead of running from memory as I am presently.

However, if we're on the same "wavelength" (see what I did there?), and I take an educated guess at what it is you're talking about (well, there's only two possibilities really, isn't there?), I believe you'll find that the built in progress bar (%pb) behaves exactly as you would expect it to here.

If I assume you're talking about a scan bar, you could do a very simply graphical implementation with four simple theme tags:

--- Code: ---%pb
%al%ta%ac%tcMHz%ar%tb
--- End code ---

OK, I lied...I forgot about alignment tags. Seven, seven simple theme tags.

This will produce a graphical bar, with mix and max frequencies immediately underneath it to the left and right respectively, and the current frequency centred between the two.

And if I assume you're talking about the peak meters, you can use:

--- Code: ---%pm
--- End code ---

Which will provide a built in stereo peak meter.


[Saint]

TOTAL:
Hi

Thank you for your answer. I use sansa clip+.

I compiled my own audiobook theme for mp3 player I called EXPANDER years ago, so I am familiar with the concept, however, I have forgotten the basics.

Tried pasting your line into x8steak but it did not work.

I guess I will need to revise.

[Saint]:
Can we elaborate on "it did not work" please?

Did the entire theme fail to load, indicating a syntactical error and a failure to parse? Did the theme load, but these elements fail to show? It might not seem to be, but this is all important information that can help myself or others to get a grasp on what's going on.

If you could provide a pastebin link of the .fms, or preferably, a download link to the full theme in its current non-functional state, I could see what I can do for you. I don't do much for the community besides moderation and support in these forums and on our Freenode IRC channel (where, generally speaking, its best to reach me for live support - though I haven't been particularly active there lately due to time constraints coupled with jostling my home network architecture around with newly acquired hardware), its nice to still be able to give back every once in a while.

I'm happy to assist you.


[Saint]

TOTAL:
It was simply replaced by the hardcoded one. All formatting imperfections I could deal with but when the interface simply does not show, it takes deeper knowledge of the code.

Here is the code of x8 steak radio that I find nearly perfect. It has time, battery, station name exposed. If it also featured the wavelength scale indicator in its top row, it would have it all (less a recording indicator instead of mono/stereo ;)


--- Code: ---# Works !
# disable status bar
%wd

# Load fonts
%Fl(3,14-Adobe-Helvetica-Bold.fnt,100)
%Fl(4,16-Adobe-Helvetica-Bold.fnt,100)
# Load bitmaps
%xl(P,playmode.bmp,0,0,9)
%xl(B,battery.bmp,0,0,9)
%xl(C,plug.bmp,0,0,1)

# Sleeptimer
%V(0,0,-,16,3)
%ac%?bs<Sleep.. %bs|>


# Battery bmp & level(%)
%V(0,16,17,8,0)
%?bp<%xd(Bb)|%?bl<%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)>>
%V(17,16,20,8,0)
%al%bl%%

# FM Status bmp, vol level & time
%V(40,16,8,8,0)
%?mp<%xd(Pa)|%xd(Pb)|%xd(Pc)|%xd(Pd)|%xd(Pe)|%xd(Pf)|%xd(Pg)|%xd(Ph)|%xd(Pi)>
%V(50,16,-,8,0)
%al%pvdB%ar%cH:%cM

# Preset name
%V(0,26,-,16,4)
%s%ac%Tn

# 91.7Mhz | Mono/Stereo
%V(0,44,-,8,1)
%al%tfMhz%ar%?ts<Stereo|Mono>

# Scan mode/Stat°3/6 |20dBu
%V(0,53,-,11,1)
%al%?tm<Scan mode|Stat°%?Ti<%Ti/%Tc|>>%ar%trdBu

--- End code ---

http://www.datafilehost.com/d/b683a582

Navigation

[0] Message Index

Go to full version