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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [SOLVED] trying to write custom sbs file for Clip+ (128x64x1)
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] trying to write custom sbs file for Clip+ (128x64x1)  (Read 3233 times)

Offline steak

  • Member
  • *
  • Posts: 104
[SOLVED] trying to write custom sbs file for Clip+ (128x64x1)
« on: December 31, 2012, 06:22:26 AM »
EDIT: Things are getting better... I rewrote the sbs file, took a screenshot : one single question left, read below...

Hi folks,

I am trying to work out a customised basic screen to suit my taste. Half the job is done but I am struggling to finish it. Having very little IT knowledge I write & test my code but after hours of unsuccessful work I get confused and quite honestly fed up.

So if someone more skilled could have a look at my sbs file and help, comment, etc.., it would be nice.

I paste my sbs file below, EDIT: NOT followed by [my wps so anyone could comment if it's properly written (licencing rules). Sorry for the hassle : my first theme]

EDIT: After more trials & errors I'm getting close. Only problem left : in all but one menu (File browser), I want no menu title on top of menu list (to allow more lines in the list).

In "File browser" menu, title is replaced by browsing path, which is useful. Somehow in "DFKT_Minimum_Clip_v2.sbs" I found a tag (%LB) which seems to display the browsing path. I did not find this tag in the manual (Clip+) so I am not sure what it stands for. If anyone knows, feel free to explain.

In all other menu (all which I use so far that is), menu title only reminds user of where he is. Useful if you are not familiar with the menus, otherwise not so much. So I got rid of it

BUT !! the line where it was is not filled by the menu, it is only blank



QUESION IS WOULD ANYONE KNOW HOW TO MOVE UP THE LIST ?

My updated "x8steak.sbs" file (simplified)

Code: [Select]
# Theme: x8steak
# Author : steak
# Contact: http://forums.rockbox.org/index.php?action=pm;sa=send;u=24515
# Platform: Sandisk Sansa Clip+ (128x64x1)
# Licence: CC-BY-SA 3.0

%wd

# fonts
%Fl(2,08-Nedore.fnt)
%Fl(6,08-Namil-Small-Hyphen.fnt)

###### UI viewport
%Vi(-,0,25,-,-,-)

# line 1
## Playlist position + Conditionnal comment + Time
%V(0,0,-,8,6)
%s%al%pp/%pe %s%ar%?if(%cH,<=,5)<%cH:%cM.. tic tac%, le temps se carapate...|%?if(%cH,<=,22)<Tiens.. %cH:%cM...|%cH:%cM : baisse un peu le phono...>>

# line 2
## if File Browsing = next Track title & Artist ALTERNATIVELY (filename alone if title tag missing) ; otherwise Track artist
%V(0,8,-,8,6)
%s%?if(%cs,=,7)<%ac%t(1.5)%?It<%It|%Fn>;%ac%t(1)%?Ia<%Ia|%Fn>|%V(0,8,-,8,0)%ac%?It<%It|%Fn>>
« Last Edit: January 03, 2013, 07:36:21 AM by steak »
Logged
>>ports: >Cowon D2, Sansa Clip+ & Clip Zip, >Android: Samsung Galaxy SII & Motorola Defy MB525 (both ok with build 4aa32fb-131023)
>>(Previous) Android: Samsung Galaxy SI (rb worked well)
>>Misc: Archos XS202, iRiver imp550 & imp350, Sony MZ-RH1, Shure SE530

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: trying to write custom sbs file for Clip+ (128x64x1)
« Reply #1 on: December 31, 2012, 11:36:32 AM »
AAAAAH! Put the file in code tags, please!
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline steak

  • Member
  • *
  • Posts: 104
Re: trying to write custom sbs file for Clip+ (128x64x1)
« Reply #2 on: January 01, 2013, 10:30:38 AM »
Quote from: whiskers75 on December 31, 2012, 11:36:32 AM
AAAAAH! Put the file in code tags, please!

Eeermh... Define "file in code tags" please.

Off-subject: By mere curiosity, where do I find a plain word description of your commit or whatever I should call it  ?
Logged
>>ports: >Cowon D2, Sansa Clip+ & Clip Zip, >Android: Samsung Galaxy SII & Motorola Defy MB525 (both ok with build 4aa32fb-131023)
>>(Previous) Android: Samsung Galaxy SI (rb worked well)
>>Misc: Archos XS202, iRiver imp550 & imp350, Sony MZ-RH1, Shure SE530

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: trying to write custom sbs file for Clip+ (128x64x1)
« Reply #3 on: January 02, 2013, 03:02:36 PM »
Quote from: steak on January 01, 2013, 10:30:38 AM
Quote from: whiskers75 on December 31, 2012, 11:36:32 AM
AAAAAH! Put the file in code tags, please!

Eeermh... Define "file in code tags" please.

Off-subject: By mere curiosity, where do I find a plain word description of your commit or whatever I should call it  ?

His comment :)

In the list of icons when you are posting, you can select one that makes what you type look:

Code: [Select]
Like this
Fun eh?

However, it doesn't matter at all so don't worry.

As for your actual question, from memory %LB is something to do with draweing scroll bars so not needed I think.  Can't you just turn off showing the title in options?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline steak

  • Member
  • *
  • Posts: 104
Re: trying to write custom sbs file for Clip+ (128x64x1)
« Reply #4 on: January 03, 2013, 05:17:12 AM »
Quote from: AlexP on January 02, 2013, 03:02:36 PM
Can't you just turn off showing the title in options?
%LB does not help indeed

%Lt removes title but the list does not move up to fill the gap

I split the next song info in 2 lines when not in "File browser" menu : that way I fill the gap and the screen is more readable.

So far it's good enough. Now I should fix my wps (minor issue with scrolling line) but that will probably be in a few months ! Homework piles up.
Logged
>>ports: >Cowon D2, Sansa Clip+ & Clip Zip, >Android: Samsung Galaxy SII & Motorola Defy MB525 (both ok with build 4aa32fb-131023)
>>(Previous) Android: Samsung Galaxy SI (rb worked well)
>>Misc: Archos XS202, iRiver imp550 & imp350, Sony MZ-RH1, Shure SE530

Offline steak

  • Member
  • *
  • Posts: 104
Re: trying to write custom sbs file for Clip+ (128x64x1)
« Reply #5 on: January 03, 2013, 07:35:40 AM »
Thanks for suggestions. I am closing the subject in order to focus on actual work  :(
Logged
>>ports: >Cowon D2, Sansa Clip+ & Clip Zip, >Android: Samsung Galaxy SII & Motorola Defy MB525 (both ok with build 4aa32fb-131023)
>>(Previous) Android: Samsung Galaxy SI (rb worked well)
>>Misc: Archos XS202, iRiver imp550 & imp350, Sony MZ-RH1, Shure SE530

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [SOLVED] trying to write custom sbs file for Clip+ (128x64x1)
 

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

Page created in 0.074 seconds with 14 queries.