Tools for using cross-platform Qt icon themes.
Project description
This package provides tools to manage PyQt icon themes.
The QIcon.fromTheme API works with icon themes following the freedesktop icon theme spec, which is great for Linux systems with installed and enabled themes, but not for Windows or OS X, which lack them.
To benefit, you just have to create a theme directory with the right structure and use this package’s functions:
icons (The default directory name) ├hicolor │├16x16/apps/myapp.png │├32x32/apps/myapp.png │┆ │└scalable/apps/myapp.svg └mypackage-builtin ├16x16 │├actions ││├document-open.png ││┆ │├mimetypes ││├application-x-mymime.png ┆┆┆
This package provides the following functions to ease bundling an in-memory icon theme for those systems:
- write_theme_indices
Creates .index.theme files from the .png and .svg files.
- write_resources
Create a .qrc and _rc.py file to import the icon data from. (Needs the .index.theme files)
- write_iconset
Creates a iconset folder for OSX apps, e.g. via py2app, using the hicolor/<s>x<s>/apps/myapp.png files.
- install_icon_theme
To be used in a running application to make the builtin icons available.
The hicolor/<s>x<s>/apps/myapp.png files can be
installed to the system by packagers (/usr/share/icons/hicolor/…)
subsequently used in a .desktop file (Icon=myapp)
used as window icon (self.setWindowIcon(QIcon.fromTheme('myapp')))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qtico-0.1.tar.gz
.
File metadata
- Download URL: qtico-0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d604a85a024fae69ba38149387be0df77ad6e6d4987737527804457a7af429 |
|
MD5 | 2ed6a6b8f5914f95dde027db7d983154 |
|
BLAKE2b-256 | e3996844e4829ef4938621bbb203150a79f284b2e2da94a0d3c1b08fb0842ee4 |
File details
Details for the file qtico-0.1-py3-none-any.whl
.
File metadata
- Download URL: qtico-0.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7215d78383ac34c0d927dcc240edb9203ef93d915d39bf8f70859f6be03d19d |
|
MD5 | e92850abc28ebba1f194d05c71118808 |
|
BLAKE2b-256 | 9b13f5cb7cf3b7ea334628cd1e1650f70d1b45b6fa567d5010565a22dd1c41d1 |