From 9f0cbb5a36911493467e31923eb48afd0af21e34 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 29 Oct 2009 07:33:09 +0000 Subject: minor changes... * demonstrate how to give options using conditional viewports (some people like text battery and volume!?) * specify the UI area viewport git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23396 a1c6a512-1295-4272-9138-f99709370657 --- wps/classic_statusbar.sbs | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/wps/classic_statusbar.sbs b/wps/classic_statusbar.sbs index 22fa9e5b87..54c0ffee74 100644 --- a/wps/classic_statusbar.sbs +++ b/wps/classic_statusbar.sbs @@ -1,23 +1,50 @@ +# # Classic statusbar adapted to skin engine # -# Bar at the top.. very easy to change to the bottom +# Bar at the top.. very easy to change to the bottom (change the y positions from 0 to -8 # + +# specify the UI area viewport... everything but a bar 8 pixels high at the top +%Vi|0|8|-|-|1|-|-| + +############################################################## +# Options: +# you can use icons or text for the volume and battery display +# Just comment out the line for the one you dont want! + +# comment out the next line if you dont want battery icons + %Vda +# comment out the next line if you dont want battery number as text +# %Vdb + +# comment out the next line if you dont want volume icons + %Vdc +# comment out the next line if you dont want volume number as text +# %Vdd + +################################################################ + # Load some bitmaps -%wd # not sure if this is needed for sbs files? %xl|B|battery.bmp|0|0|10| %xl|V|volume.bmp|0|0|10| %xl|S|status.bmp|0|0|12| -# Battery area -%V|0|0|-|8|0|-|-| +# Battery area, Icons +%Vl|a|0|0|-|8|0|-|-| %?bl<%xdBa|%xdBa|%xdBb|%xdBc|%xdBd|%xdBe|%xdBf|%xdBg|%xdBh|%xdBi|%xdBj> # charging icon -%V|16|0|-|8|0|-|-| +%Vl|a|16|0|-|8|0|-|-| %?bc<%xdSa|> +# battery area, no icons +%Vl|b|0|0|-|8|0|-|-| +%bl%bc + # Volume area -%V|27|0|-|8|0|-|-| +%Vl|c|27|0|-|8|0|-|-| %?mv<%pv|%?pv<%xdVa|%xdVb|%xdVc|%xdVd|%xdVe|%xdVf|%xdVg|%xdVh|%xdVi|%xdVj>> +%Vl|d|27|0|-|8|0|-|-| +%pv # Icons, all in the same bmp strip, so need to use multiple viewports # Playback mode @@ -35,5 +62,8 @@ # Clock on RTC able targets, and disk access -%V|-36|0|-|8|0|-|-| # align on the right with room for 6 SYSFONT digits -%?ca<%?St|time format|<%cH|%cI>:%cM|--:-->%?lh<*|> +%V|-36|0|-6|8|0|-|-| # align on the right with room for 6 SYSFONT digits +%?cc<%?ca<%?St|time format|<%cH|%cI>:%cM|--:-->|> +# disk access "icon" +%V|-6|0|-|8|0|-|-| # align on the right with room for 1 SYSFONT digit +%?mm<*|> -- cgit v1.2.3