convert your icon into Sailfish OS style
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
dev_requirements.txt
jollaicon.py
requrements.txt
setup.cfg
setup.py

README.md

jollaicon

Summary

jollaicon can convert a png file into Sailfish OS style.

Here is a Android icon set in Sailfish OS style already: TylerTemp-DroidSailizedIcon. Also here and here

It's a very little tool: it only change the shape of the icon. You may still need to edit the file after converted.

Install

It requires python and python-pip

Install by:

pip install git+git://github.com/TylerTemp/jollaicon.git

or

git clone https://github.com/TylerTemp/jollaicon.git
cd jollaicon
pip install .

Then run as

jollaicon --help

If you're a python developer, you can use it as

from jollaicon import icon
help(icon)

NOTE: Mac OSX need to install cairo separated:

brew install cairo

More about brew command

Usage

Usage:
    $ python jollaicon.py [options] <input> <output>

Options:
    -1, --top-left        make top left rectangle instead of round
    -2, --top-right       make top right rectangle instead of round
    -3, --bottom-right    make bottom right rectangle instead of round
    -4, --bottom-left     make bottom left rectangle instead of round
    -h, --help            print this screen
    -v, --version         print version of this script
    -f, --fill[=<color>]  fill color for transparent part. No effect when your
                          icon file is full-filled with color already. It
                          should in ``(r, g, b)`` or ``(r, g, b, alpha)``
                          number group. use white when this option appears but
                          no color specified.

    <input>               path to your icon file (png format only)
    <output>              output file (png format)

The corners of Sailfish icon are only round or rectangle. Use -1, -2, -3, -4 to set which corner is round/rectangle