Skip to main content

Module theme

Module theme 

Source
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.