Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: jdotfite on May 11, 2014, 01:11:27 PM

Title: [320x240x24] Redux theme for the iPod Video
Post by: jdotfite on May 11, 2014, 01:11:27 PM
Hey guys, I recently stumbled upon the possible iPod video storage upgrades and then found rockbox.  I quickly picked up an iPod, upgraded the storage and installed rockbox  I am really enjoying rockbox and wanted to contribute something.  I studied everyone's great themes all last week and am now ready to present my own theme.  I am calling it "redux".  I hope you guys like it! http://themes.rockbox.org/index.php?themeid=2162&target=ipodvideo

(http://i.imgur.com/iKy0H06.jpg)

(http://i.imgur.com/YJol5sJ.png) (http://i.imgur.com/nZvIxXX.png) (http://i.imgur.com/J25lJRi.png)
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: jdotfite on May 11, 2014, 01:49:47 PM
I would have really liked to use an anti-aliased Helvetica font for the time in the left hand corner, but for the life of me, I couldn't get figure out cygwin enough to use convttf.  I ended up using droidsans since SAINT released a pack of all the sizes.  Is there a compiled version of convttf for windows or would anyone be willing to do the helvetica fonts for the community?
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: cholero on June 16, 2014, 01:22:54 AM
Hello jdotifite,
first of all, thanks for your great theme. It is one the themes that look A-Z stylish.
Maybe you've noticed that your theme is also listed for Cowon D2 Players. Maybe you could add touchscreen areas for the D2 owners, that would be great (or i could do it for you and send it to you, so you would release the update). And an FM screen would be cool too.

Maybe I will look at the convttf if i find the time, but i think it is difficult to get a good result  :(. Anyway, is it allowed, to use the converted Helvetica fonts?

Regards, cholero
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: cholero on June 18, 2014, 02:18:19 PM
I've played around a little with covttf. It gives out easily a quite good result:

(http://abload.de/img/dump140618-2105527kbvn.png)

(http://abload.de/img/dump140618-210900n1l4g.png)

The main problem are the numbers. It is annoying if you use a font for time display where the numbers are not equally wide. It is not with your Droidsans and I couldn't make it the same width with Helvetica and convttf. I would stay with Droidsans or did you try ubuntu? Ubunt has a constant width.
If you're still interested and have a ttf font which is legal to use (I don't remember where I got my ttf's from), send it to me and I'll try to convert it.


btw, these are the options whit convttf:

Usage: convttf [options] [input-files]
       convttf [options] [-o output-file] [single-input-file]

       Default output-file : <font-size>-<basename>.fnt.
                              When '-ta' or '-tc' is specified in command line,
                                default output-file is:
                             <font-size>-<internal postscript-name of input-file>.fnt.
Options:
    -s N   Start output at character encodings >= N
    -l N   Limit output to character encodings <= N
    -p N   Font size N in pixel (default N=15)
    -c N   Character separation in pixel.Insert space between lines.
    -x     Trim glyphs horizontally of nearly empty space
              (to improve spacing on V's W's, etc.)
    -X     Set the horizontal and vertical resolution (default: 60)
    -TA N  Trim vertical ascent  (N percent)
    -TD N  Trim vertical descent (N percent)
    -Ta N  Trim vertical ascent  (N pixels)
    -Td N  Trim vertical descent (N pixels)
    -r N   Row separation in pixel.Insert space between characters
    -d     Debug: print converted glyph images
    -tt    Display the True Type Collection tables available in the font
    -t N   Index of true type collection. It must be start from 0.(default N=0).
    -ta    Convert all fonts in ttc (ignores outfile option)
    -w     Don't try to make digits (0-9) equally wide
    -L     Use lighter hinting algorithm
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: [Saint] on June 18, 2014, 04:27:46 PM
Were these the fonts I generated years and years ago?

Droidsans and Ubuntu anti-aliased fonts make me want to say yes, if not, that's an incredible coincidence.

By default, convttf will *try* to make all digits equally wide, unless the user passes the -w flag, but in my experience, this is a mixed bag of results. Most of the convttf flags come with some non-obvious caveat (manually adjusting ascent/descent is a veritable nightmare), but the results are generally "OK".

Should I consider this a call to arms, and generate a new font set to link to the Extras page?

Would this be useful, wanted?


[Saint]
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: cholero on June 19, 2014, 01:34:25 PM
Of course this are your fonts. Thanks a lot. I've used many different sizes of the Ubuntu font on my theme (arc-en-ciel). It is strange that some sizes look much better than others.

And a link on the extras page still exists!? Do you want to add more fonts?

Thank you for all your great work and for keeping an eye on all activity around here.

Cholero
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: cholero on August 18, 2014, 12:41:46 AM
deho @head-fi.org made touchscreen areas for your wps file (attached)  :)
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: redblade8 on August 24, 2014, 04:23:13 PM
Cool, the vertical meter works then like the ones you can see on some stereos? Is this just the peak meter modified?
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: [Saint] on August 24, 2014, 07:06:51 PM
Its a bunch of left/right peak meters of different sizes stacked, I posit, to make it appear to be a functional GEQ visualizer.


[Saint]
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: redblade8 on August 27, 2014, 10:51:15 PM
Cool, that's pretty awsome ;D I was hoping one day for an actual visualizer to be in the .wps screen, or even a plugin/demo, but this is a cool work-around.
I attempted to convert this for my Sansa e280, but failed v.v
I re-sized the bitmaps, and changed a few values so that they weren't outside of my sansa's pixel's, but it didn't work.
I also tryed to just copy & paste all the code for just the peak meter into an already working .wps, but it just goes to the failsafe screen. I had both the %xl & %pL & %pR code, so I wasn't sure why it wasn't working.
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: [Saint] on August 27, 2014, 11:26:50 PM
Sight unseen its impossible to say what went wrong.


[Saint]
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: Roboturner913 on February 19, 2018, 11:12:42 PM
This theme is wonderful. I am hoping to port to Sansa Fuze (220x176) but I fully expect to break it since I'm not very good at all with these things.

If anybody has any suggestions before I get started I would very much appreciate it.
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: Bilgus on February 20, 2018, 09:18:16 AM
Save yourself some heartburn
If you are using windows use Notepad++ to edit the theme
also when you do newlines put # instead of a blank newline

example:
Instead of:
Code: [Select]
Volume%V(0,0,10,-,-)

%V(1,1,100,100,0)

do this:
Code: [Select]
Volume%V(0,0,10,-,-)
#
%V(1,1,100,100,0)

Negative width and height values allow you to auto size your element
for instance on a device with a 96 x 128 px screen
Code: [Select]
#
%V(10,10,86,118,0)
#is the same as
%V(10,10,-10,-10,0)
#on that device and works for other screens too
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: Frankenpod on March 11, 2018, 02:32:02 PM
This theme is wonderful. I am hoping to port to Sansa Fuze (220x176) but I fully expect to break it since I'm not very good at all with these things.

If anybody has any suggestions before I get started I would very much appreciate it.

Here's my stab at porting it.  It's very cramped, but it's a nice theme so worth porting (not that I have a player that has that resolution).

If you haven't managed it yourself yet I've uploaded mine to the theme page.

(If you have a different version, upload that as well!)
Title: Re: [320x240x24] Redux theme for the iPod Video
Post by: DJtheAudiophile on September 16, 2019, 05:50:42 PM
Hello, I have a question. I really like this theme. Is it possible to change all the blue colors with a matching white or grey color in the theme?