Material Symbols by Google for Qt using PySide
Project description
qt-material-icons
A Python library that enables Material Symbols / Material Icons by Google to be used in Qt using PySide.
Installation
Install using pip:
pip install qt-material-icons
Usage
from PySide6 import QtGui
from qt_material_icons import MaterialIcon
# Create a QIcon object
icon = MaterialIcon('search')
# Set a color
color = QtGui.QColor('red')
icon.set_color(color)
# Set a color for a state, for example when a button is checked
icon.set_color(color, state=QtGui.QIcon.State.On)
# Set a different icon for a state, for example when a button is checked
toggle_icon = MaterialIcon('toggle_off')
toggle_icon_on = MaterialIcon('toggle_on')
toggle_icon.set_icon(toggle_icon_on, state=QtGui.QIcon.State.On)
Refer to Google Material Symbols & Icons for browsing icons.
Contributing
To contribute please refer to the Contributing Guide.
License
MIT License. Copyright 2024 - Beat Reichenbach. See the License file for details.
The Material Symbols / Material Icons are licensed under Apache License Version 2.0.
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
qt_material_icons-0.2.0.tar.gz
(17.5 MB
view details)
Built Distribution
File details
Details for the file qt_material_icons-0.2.0.tar.gz
.
File metadata
- Download URL: qt_material_icons-0.2.0.tar.gz
- Upload date:
- Size: 17.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4711082ceb3a91743df00a0f366df3c94adbd149bdfa73973e6a8dd0ac5c8603 |
|
MD5 | d55a510122c7b56bbeaca72f4993b1f0 |
|
BLAKE2b-256 | 9b6a03670a80bba974c93b2b93f0efe905f8a26ca4d9d5e176a2216fb7949dcb |
File details
Details for the file qt_material_icons-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: qt_material_icons-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc14af68e7576b1b0847eb37b53fd68962cab9e2469c8a22a06a860b8deb604 |
|
MD5 | 38037e7347ffc6022a5b88c2117eb328 |
|
BLAKE2b-256 | 321ae729db8a654f7da5644f1b06c55b9e1f770d2f4744f2deee86b9f9d59c13 |