Icons
app.ui.qt.shared.iconsModule for icons; implements the Qt presentation components.
See Also
TransportControlsPanel— uses tinted icons for playback controlsbundled_resource_path— resolves packaged icon assets
Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.
create_tinted_icon(icon_path: Path, icon_size: QSize, normal_tint: QColor, disabled_tint: QColor) -> QIcon
Create normal, active, and disabled icon pixmaps tinted for the UI palette.
| PARAMETER | DESCRIPTION |
|---|---|
icon_path
|
Path to the source icon.
TYPE:
|
icon_size
|
Size at which to load the source pixmap.
TYPE:
|
normal_tint
|
Color applied to normal and active icon states.
TYPE:
|
disabled_tint
|
Color applied to the disabled icon state.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
QIcon
|
Tinted icon, or an empty icon if the source pixmap cannot be loaded. |