spacr.qt.iconset

Central icon lookup for the spacr Qt GUI.

Wraps qtawesome so callers stay decoupled from Font Awesome glyph names, and returns a placeholder QIcon() if qtawesome isn’t installed so the UI still renders (with text-only buttons).

Module Contents

spacr.qt.iconset.icon(name: str, color: str | None = None, size: int = 16) PySide6.QtGui.QIcon[source]

Return a QIcon for the named glyph, or an empty QIcon fallback.

name is a semantic key (e.g. “open”, “run”, “brush”) mapped to a Font Awesome glyph. Unknown names fall back to a puzzle piece.

spacr.qt.iconset.accent_icon(name: str) PySide6.QtGui.QIcon[source]

Icon painted in the accent color (used for primary buttons).

spacr.qt.iconset.contrast_icon(name: str) PySide6.QtGui.QIcon[source]

Icon painted in the background color — used inside filled (PrimaryButton) buttons where the button bg IS the accent.