spacr.qt.iconset
================

.. py:module:: spacr.qt.iconset

.. autoapi-nested-parse::

   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
---------------

.. py:function:: icon(name: str, color: Optional[str] = None, size: int = 16) -> PySide6.QtGui.QIcon

   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.


.. py:function:: accent_icon(name: str) -> PySide6.QtGui.QIcon

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


.. py:function:: contrast_icon(name: str) -> PySide6.QtGui.QIcon

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


