pyqt_reactive.widgets.shared.scope_visual_config

Configuration and data structures for scope-based coloring.

Functions

get_scope_visual_config()

Singleton access for ScopeVisualConfig.

Classes

ListItemType(*values)

Type of list item for scope-based coloring.

ScopeColorScheme(scope_id, hue, ...[, ...])

Color scheme for a specific scope.

ScopeVisualConfig([...])

Static configuration values for scope-based visuals.

class pyqt_reactive.widgets.shared.scope_visual_config.ScopeVisualConfig(ORCHESTRATOR_ITEM_BG_SATURATION: int = 50, ORCHESTRATOR_ITEM_BG_VALUE: int = 85, ORCHESTRATOR_ITEM_BORDER_SATURATION: int = 60, ORCHESTRATOR_ITEM_BORDER_VALUE: int = 80, ORCHESTRATOR_ITEM_BG_OPACITY: float = 0.1, STEP_ITEM_BG_SATURATION: int = 50, STEP_ITEM_BG_VALUE: int = 85, STEP_ITEM_BG_OPACITY: float = 0.1, GROUPBOX_BG_OPACITY: float = 0.05, TREE_BG_OPACITY: float = 0.05, STEP_WINDOW_BORDER_SATURATION: int = 60, STEP_WINDOW_BORDER_VALUE: int = 80, STEP_WINDOW_BORDER_WIDTH_PX: int = 4, STEP_WINDOW_BORDER_STYLE: str = 'solid', FLASH_DURATION_MS: int = 300, FLASH_COLOR_RGB: tuple[int, int, int] = (144, 238, 144), LIST_ITEM_FLASH_ENABLED: bool = True, WIDGET_FLASH_ENABLED: bool = True)[source]

Static configuration values for scope-based visuals.

ORCHESTRATOR_ITEM_BG_SATURATION: int = 50
ORCHESTRATOR_ITEM_BG_VALUE: int = 85
ORCHESTRATOR_ITEM_BORDER_SATURATION: int = 60
ORCHESTRATOR_ITEM_BORDER_VALUE: int = 80
ORCHESTRATOR_ITEM_BG_OPACITY: float = 0.1
STEP_ITEM_BG_SATURATION: int = 50
STEP_ITEM_BG_VALUE: int = 85
STEP_ITEM_BG_OPACITY: float = 0.1
GROUPBOX_BG_OPACITY: float = 0.05
TREE_BG_OPACITY: float = 0.05
STEP_WINDOW_BORDER_SATURATION: int = 60
STEP_WINDOW_BORDER_VALUE: int = 80
STEP_WINDOW_BORDER_WIDTH_PX: int = 4
STEP_WINDOW_BORDER_STYLE: str = 'solid'
FLASH_DURATION_MS: int = 300
FLASH_COLOR_RGB: tuple[int, int, int] = (144, 238, 144)
LIST_ITEM_FLASH_ENABLED: bool = True
WIDGET_FLASH_ENABLED: bool = True
__init__(ORCHESTRATOR_ITEM_BG_SATURATION: int = 50, ORCHESTRATOR_ITEM_BG_VALUE: int = 85, ORCHESTRATOR_ITEM_BORDER_SATURATION: int = 60, ORCHESTRATOR_ITEM_BORDER_VALUE: int = 80, ORCHESTRATOR_ITEM_BG_OPACITY: float = 0.1, STEP_ITEM_BG_SATURATION: int = 50, STEP_ITEM_BG_VALUE: int = 85, STEP_ITEM_BG_OPACITY: float = 0.1, GROUPBOX_BG_OPACITY: float = 0.05, TREE_BG_OPACITY: float = 0.05, STEP_WINDOW_BORDER_SATURATION: int = 60, STEP_WINDOW_BORDER_VALUE: int = 80, STEP_WINDOW_BORDER_WIDTH_PX: int = 4, STEP_WINDOW_BORDER_STYLE: str = 'solid', FLASH_DURATION_MS: int = 300, FLASH_COLOR_RGB: tuple[int, int, int] = (144, 238, 144), LIST_ITEM_FLASH_ENABLED: bool = True, WIDGET_FLASH_ENABLED: bool = True) None
class pyqt_reactive.widgets.shared.scope_visual_config.ScopeColorScheme(scope_id: str | None, hue: int, orchestrator_item_bg_rgb: tuple[int, int, int], orchestrator_item_border_rgb: tuple[int, int, int], step_window_border_rgb: tuple[int, int, int], step_item_bg_rgb: tuple[int, int, int] | None, step_border_width: int = 0, step_border_layers: list = None, base_color_rgb: tuple[int, int, int] = (128, 128, 128))[source]

Color scheme for a specific scope.

scope_id: str | None
hue: int
orchestrator_item_bg_rgb: tuple[int, int, int]
orchestrator_item_border_rgb: tuple[int, int, int]
step_window_border_rgb: tuple[int, int, int]
step_item_bg_rgb: tuple[int, int, int] | None
step_border_width: int = 0
step_border_layers: list = None
base_color_rgb: tuple[int, int, int] = (128, 128, 128)
to_qcolor_orchestrator_bg()[source]

QColor for orchestrator item background with alpha.

to_qcolor_orchestrator_border()[source]

QColor for orchestrator item border.

to_qcolor_step_window_border()[source]

QColor for step window border.

to_qcolor_step_item_bg()[source]

QColor for step list background (alpha) or None.

to_stylesheet_step_window_border() str[source]

Reserve border space via stylesheet for step windows.

__init__(scope_id: str | None, hue: int, orchestrator_item_bg_rgb: tuple[int, int, int], orchestrator_item_border_rgb: tuple[int, int, int], step_window_border_rgb: tuple[int, int, int], step_item_bg_rgb: tuple[int, int, int] | None, step_border_width: int = 0, step_border_layers: list = None, base_color_rgb: tuple[int, int, int] = (128, 128, 128)) None
class pyqt_reactive.widgets.shared.scope_visual_config.ListItemType(*values)[source]

Type of list item for scope-based coloring.

ORCHESTRATOR = 'to_qcolor_orchestrator_bg'
STEP = 'to_qcolor_step_item_bg'
get_background_color(color_scheme: ScopeColorScheme)[source]
pyqt_reactive.widgets.shared.scope_visual_config.get_scope_visual_config() ScopeVisualConfig[source]

Singleton access for ScopeVisualConfig.