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
| | |-+  Customisable Statusbar
« previous next »
  • Print
Pages: [1] 2

Author Topic: Customisable Statusbar  (Read 8925 times)

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Customisable Statusbar
« on: October 19, 2009, 07:13:39 PM »
I today committed my custom statusbar work.

It allows you to write WPSes for the main UI (lists, etc) replacing the classic statusbar.


You can use virtually all tags you can use in the WPS. I've updated http://www.rockbox.org/wiki/CustomWPS to mention the restrictions for custom statusbar (see especially under viewports: You must use viewports, and having a %Vi that describes the list viewport is recommended).

To make it work, you need to put a .sbs file on the player and load it. Putting it into the /.rockbox/wps directory is recommended so that it can share images with the wps.

If you have questions, feel free to drop them
Logged
 

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Re: Customisable Statusbar
« Reply #1 on: October 20, 2009, 12:29:25 PM »
Very cool, kugel. Thank you for all of your GUI-related commits! The Rockbox interface is getting more attractive by the day. :D

Do we need to add a line of text to theme .cfg files indicating which particular .sbs file to use for the theme's statusbar? (If so, what would that line of text look like?)
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

Offline mc2739

  • Developer
  • Member
  • *
  • Posts: 262
Re: Customisable Statusbar
« Reply #2 on: October 20, 2009, 01:00:20 PM »
Quote from: epithetless on October 20, 2009, 12:29:25 PM
Do we need to add a line of text to theme .cfg files indicating which particular .sbs file to use for the theme's statusbar? (If so, what would that line of text look like?)

This is from the settings dumper plugin:

Code: [Select]
sbs: Text.. Up to 32 characters. Should start with:"/.rockbox/wps/" and end with:".sbs"
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Customisable Statusbar
« Reply #3 on: October 20, 2009, 01:46:29 PM »
Quote from: epithetless on October 20, 2009, 12:29:25 PM
Very cool, kugel. Thank you for all of your GUI-related commits! The Rockbox interface is getting more attractive by the day. :D

You're welcome :)

Quote
Do we need to add a line of text to theme .cfg files indicating which particular .sbs file to use for the theme's statusbar? (If so, what would that line of text look like?)

Yes, for one you need sbs: /path/to/file.sbs which looks exactly like the wps line to load the file. And then you need statusbar: custom to actually display it.
Loading a statusbar from filebrowser will do both for you, you could then use settings_dumper or manage settings->save theme settings to save it permanentally (IIRC, just like the .wps files, the sbs: line will only be permanent if the file is located in the /.rockbox/wps directory).
Logged
 

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Re: Customisable Statusbar
« Reply #4 on: October 20, 2009, 04:58:12 PM »
Thanks, guys. I look forward to playing around with it when I have the time.
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

Offline froggyman

  • Member
  • *
  • Posts: 214
Re: Customisable Statusbar
« Reply #5 on: October 20, 2009, 05:17:15 PM »
Looks great, now to wait for some of the artists out there to use these in the themes for other various players! :)
Logged
iPod Video 5.5G 30GB - Now Dead :(
Sansa Fuzev2 4GB

"To prevent this day from getting worse, I'll just read ERROR as GOOD THING"

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Customisable Statusbar
« Reply #6 on: October 21, 2009, 05:10:44 PM »
I just uploaded one for the gigabeat F/X/S - CSB :)

« Last Edit: October 21, 2009, 05:12:15 PM by AlexP »
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: Customisable Statusbar
« Reply #7 on: October 21, 2009, 05:22:19 PM »
anybody wanna make one for the current default theme on rockbox? "cabbiev2" ?
edit: also what are the rules on packaging a theme? i thought you had to supply the font as well if it used a custom font?
edit: ok last edit. looking at AlexP's theme he made this reminded me of something. i remember a discussion of a theme just like this when there was first discussion of the port of the h1xx. LOOK HOW FAR WE HAVE COME!!!!!
« Last Edit: October 21, 2009, 05:33:51 PM by psycho_maniac »
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

Offline tdtooke

  • Member
  • *
  • Posts: 151
Re: Customisable Statusbar
« Reply #8 on: October 22, 2009, 02:24:21 AM »
Thanks!  Excellent new idea.  And on another note I guess since your screenshot of a Sansa? has a German ui then the name 'kugel' is from the food?
Logged

Offline bakseetdrivr

  • Member
  • *
  • Posts: 33
Re: Customisable Statusbar
« Reply #9 on: October 28, 2009, 09:20:44 PM »
hey rockboxers i got a quick question for you

I'm working on a modification of cabbiev3 that includes a status bar and i think i dont quite understand the way this commit works.

For the wps i am using the one on the theme page (for the ipod video)

For the cfg file, i based it off of the gigabeat theme that includes a statusbar.
in the cfg file i have these lines (among others that i believe are unimportant in figuring out why mine won't work):
wps: /.rockbox/wps/CabMod.wps
sbs: /.rockbox/wps/CabMod.sbs
statusbar: custom

do i need the ui viewport definition in here too?

For the sbs file, i sectioned the screen into about 4 vp's including one for the menu/lists
at the top of the sbs file i have:
%Vi|10|10|250|140|-|-|-|

is there anything that im missing?

I really appreciate any input and can post the code if that will help but its very messy (not very well commented etc). also thanks alot kugel, the one complaint i hear from non-rockboxers is that it kind of looks like windows 98:P and this i really helping to get it more flashy.

-Tom
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Customisable Statusbar
« Reply #10 on: October 28, 2009, 09:36:19 PM »
Looks correct to me actually.

How/where does it fail? You can try checking the .sbs with the checkwps tool. I suspect a syntax error.
AlexP's CSB theme is on the theme site, you might take a look at the .sbs in it to get an idea.

You don't necessarily need a ui viewport. If that one is unset, the %Vi will be used as this one. If you set one, then in the theme.cfg file.
Logged
 

Offline AsusFreak

  • Member
  • *
  • Posts: 64
Re: Customisable Statusbar
« Reply #11 on: October 29, 2009, 10:15:09 AM »
Hi.

I made a new version of my aasSimple theme for Irivers H10.

Used the customisable statusbar to get the track, time, progress, battery and playstatus information into the settings screen.

Thanks for your great work, kugel.

Further information are here.

* wps.jpg (14.81 kB, 128x128 - viewed 982 times.)

* menu.jpg (11.65 kB, 128x128 - viewed 984 times.)
« Last Edit: October 29, 2009, 11:02:27 AM by AsusFreak »
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Customisable Statusbar
« Reply #12 on: October 29, 2009, 10:40:09 AM »
Nice, feel free to upload it on the theme site. We can delete your old one(s) if you like (updating doesn't work yet).

On a side note, I think the trick you used for the first version (overlapping the album art) works again, but I'm not sure.
Logged
 

Offline AsusFreak

  • Member
  • *
  • Posts: 64
Re: Customisable Statusbar
« Reply #13 on: October 29, 2009, 10:46:44 AM »
Yes, you're right. Overlapping works again. I tested it in the simulator and on the player. The refreshing timing seems to be changed.
And ok: I took it to the theme section. I was afraid getting too much versions here...

Thank you.
« Last Edit: October 29, 2009, 10:56:27 AM by AsusFreak »
Logged

Offline Biont

  • Member
  • *
  • Posts: 49
Re: Customisable Statusbar
« Reply #14 on: November 03, 2009, 06:30:04 AM »
Thank you for your work on this!

I already made a theme using the custom status bar and I really really like what can be done with it.




Now I'm wondering if some touchscreen support could be done for the CSB

What would be really cool is a GO_TO_WPS button, since it takes pretty long to go back there from deep within the main menu.
Controlling (part of) the player/wps would also be great, but not top priority since that's what the WPS is for

What do you think?








Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Customisable Statusbar
 

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

Page created in 0.122 seconds with 14 queries.