spacr.qt.widgets.ai_toggle_label
================================

.. py:module:: spacr.qt.widgets.ai_toggle_label

.. autoapi-nested-parse::

   AiToggleLabel — a clickable text label used in place of a QCheckBox
   for the "AI" switch that sits at the bottom-right of every AppScreen.

   * Reads "AI" in white when off.
   * Reads "AI" in the accent blue when on.
   * Emits `toggled(bool)` on click; also exposes a QCheckBox-compatible
     `isChecked()` / `setChecked()` API so the AppScreen doesn't care
     which widget it's talking to.





Module Contents
---------------

.. py:class:: AiToggleLabel(parent=None)

   Bases: :py:obj:`PySide6.QtWidgets.QLabel`


   Clickable "AI" text label that behaves like a QCheckBox toggle.

   :ivar toggled: emitted with the new on/off state whenever the user
       clicks or :meth:`setChecked` flips the state.


   .. py:attribute:: toggled


   .. py:method:: isChecked() -> bool

      Return True when the AI toggle is currently ON.



   .. py:method:: setChecked(on: bool) -> None

      Set the toggle state; emits ``toggled`` only on a real change.



   .. py:method:: mousePressEvent(event)

      Flip the toggle on left-click; forward other buttons to Qt.



