Expand description
Workstation Noir theme — radiology instrument-panel aesthetic.
Single source of truth for colours, strokes, spacing, and text styles. No rounded corners. No gradients. One warm accent (amber) so the eye always knows where the focus is.
Constants§
- ACCENT
- The signature amber. Warm enough to feel like a radiograph viewbox glow, muted enough to live next to medical data without screaming.
- ACCENT_
DIM - Darker amber for inactive accents.
- BG
- Central panel background.
- BG_DEEP
- Deepest background — menu bar, status bar, modal backdrops.
- BG_
HOVER - Hover overlay applied to surfaces.
- BG_
PANEL - Side panel background.
- BG_
SURFACE - Widget surface (buttons, list rows).
- CYAN_
DATA - Cool blue used to highlight numeric data (HU readouts, distances).
- DANGER
- Error / destructive-action colour.
- FG
- Primary text colour.
- FG_DIM
- Secondary text colour.
- FG_
FAINT - Tertiary text colour for labels.
- LINE
- Subtle separator stroke.
- LINE_
BRIGHT - Stronger separator stroke.
- OK
- Success / confirmation colour.
Functions§
- hairline
- Hairline rule — the only kind of separator allowed in the theme.
- install
- Apply Workstation Noir visuals + style to the given egui context. Call once at startup.
- modality_
color - Modality → indicator colour. Each modality gets a stable hue so the sidebar reads as a data table, not a list.
- paint_
active_ brackets - Reusable: paint amber L-brackets at two diagonal corners. Used for the active-viewport indicator — no full border, just a viewfinder frame.