I Might Be Wrong

Preview of our new Maemo theme

Posted in Maemo, Python by Leif Ryge on September 21, 2008

Ian and I have been working on a new release of our LCARS packages, featuring a number of bug fixes as well as a new theme called “Okuda”:
"Okuda" theme running on N810

If all goes well, we should be ready to release this within the next 48 hours. All four of our themes now include icon templates, which we’re slicing with hildon-theme-slicer (the same way that the main theme template is processed). This is what the icon template for the Okuda theme looks like:
Anyone else wishing to create a hildon-theme-tools (and ThemeMaker) compatible layout definition might find this Python script helpful:

"""Generate a hildon-theme-tools layout from variously sized images.
Edit script to specify desired margin, width, and origin (dx,dy).
usage: hildon-theme-layout-grid-generator.py `find icons|sort|grep png`

__author__ = "Leif Ryge <leif @synthesize.us>"
__license__ = "no rights reserved / public domain"

from sys import argv
from PIL import Image

margin, width, dx,dy = 10, 600, 0,0 # margin, output width, starting coords
sizes = {}

for f in argv[1:]: sizes.setdefault(Image.open(f).size,[]).append(f)

print "[Main]\nTemplateWidth=%s\nTemplateHeight=%s\n\n[Elements]" % (width, \
    sum((h+margin)*(len(sizes[w,h])/(width/(w+margin))+1) for w,h in sizes) )

for w,h in sorted(sizes):
    column = width / (w+margin)
    row = 1 + len(sizes[w,h]) / column
    print "# %s images are %sx%s (%sx%s grid)" % (len(sizes[w,h]),w,h,column,row)
    for i, f in enumerate(sizes[w,h]):
        print "%s=%s,%s,%s,%s" % (f, dx+(i%column)*(w+margin),
    dy = dy+row*(h+margin)

The actual template can then be created from existing images using Nokia’s hildon-theme-regenerator tool.

About these ads

12 Responses

Subscribe to comments with RSS.

  1. Anthony said, on September 22, 2008 at 7:48 am

    I think from the look it’s very good. Drop me a e-mail When it’s ready..

  2. elhumano said, on September 22, 2008 at 8:20 pm

    It’s like the startrek computer

  3. ACTPOHABT said, on September 22, 2008 at 10:43 pm

    How do I install this theme when it’s out? I love it!!!

  4. app development cost said, on January 11, 2013 at 4:03 am

    Appreciating the dedication you put into your blog
    and in depth information you provide. It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed information.
    Wonderful read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  5. Keeley said, on January 30, 2013 at 6:45 pm

    I’ll immediately grab your rss as I can not in finding your e-mail subscription link or e-newsletter service. Do you have any? Please permit me understand in order that I may just subscribe. Thanks.

  6. Women in Waders 2013 Calendar said, on February 14, 2013 at 2:12 pm

    Hi there! I just wish to give you a big thumbs up for your great information you
    have got here on this post. I will be returning to your
    website for more soon.

  7. Outdoor Living Area said, on February 28, 2013 at 10:02 pm

    What you posted was very reasonable. However, what about this?
    what if you wrote a catchier title? I ain’t suggesting your information is not good, but suppose you added a headline to possibly get a person’s attention?
    I mean Preview of our new Maemo theme | I Might Be Wrong
    is a little boring. You should peek at Yahoo’s front page and note how they create article titles to get viewers to open the links. You might try adding a video or a related pic or two to grab people interested about everything’ve got to say.
    Just my opinion, it could make your blog a little livelier.

  8. healthcare organizations said, on March 2, 2013 at 4:48 pm

    I’m not sure why but this site is loading very slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back later
    and see if the problem still exists.

  9. Doreen said, on March 2, 2013 at 10:48 pm

    I’m truly enjoying the design and layout of your site. It’s a very easy on
    the eyes which makes it much more enjoyable for me to come here and visit more often.
    Did you hire out a designer to create your theme? Outstanding

  10. ebooks on electronics said, on March 3, 2013 at 3:05 am

    Hi there friends, pleasant paragraph and pleasant
    arguments commented at this place, I am genuinely enjoying by these.

  11. GolfScoreGenius said, on March 5, 2013 at 10:43 am

    ´╗┐Amazing! I’m genuinely enjoying the design of your website. Are you using a custom made template or is this freely available to all users? If you do not want to say the name of it out in the public, please be sure to e-mail me. I’d love to get my hands on this theme!

  12. electra vx male enhancement review said, on December 23, 2013 at 4:23 pm

    Currebtly it looks like Movable Type is thee top blogging platform out there right now.(from what I’ve read) Is that what you’re useing on
    your blog?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: