exlab_wizard.ui.components.status_bar_segment#
Bottom-of-window status bar segment (Frontend Spec §3.5.5).
The status bar has three segments left-to-right – Sync, Validator, LIMS –
each clickable and using var(--text-xs) monospace.
The component handles two concerns:
Color logic – normal state uses
var(--color-muted); warning states usevar(--color-warning); error states usevar(--color-danger).Layout – a small rounded segment with optional warning glyph prefix.
Functions
|
Compute a |
|
Build a clickable status-bar segment. |
Classes
|
Computed render spec for a status-bar segment. |
- class exlab_wizard.ui.components.status_bar_segment.SegmentSpec(label, state, color_var, show_warning_glyph)[source]#
Bases:
objectComputed render spec for a status-bar segment.
- exlab_wizard.ui.components.status_bar_segment.segment_spec(*, label, state='normal')[source]#
Compute a
SegmentSpecfrom a label and state.The state controls the color and whether a warning glyph prefixes the label.
- Parameters:
- Return type: