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
Built Distribution
Close
Hashes for qt_material_icons-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1d99b3eb0ba2cddb564b683cc07edce2ae42426ff49bb5077411f32ea94bfa |
|
MD5 | 20944148eb3b35321b0e54bfd9b37179 |
|
BLAKE2b-256 | c5ca4f729b169f2c360b9b678aa17110e5de7b270d92a71844a55ce9b30a7aea |