pyqt_reactive.widgets.shared.button_factory

Functions

make_accented_button(scope_id, text[, ...])

Create a QPushButton styled with the scope accent color.

pyqt_reactive.widgets.shared.button_factory.make_accented_button(scope_id: str | None, text: str, callback=None, checkable: bool = False)[source]

Create a QPushButton styled with the scope accent color.

This central factory queries ScopeColorService for the accent color (which always returns a QColor) and unconditionally applies the accent stylesheet.