Chroma Key Options
The Chroma Key Options panel provides background removal controls for video layers.
Location
Appears in the Layer Toolbar when a video/camera layer is selected.
Panel Layout
Horizontal row of color option buttons (36x36px each):
┌──────────────────────────────────────────────┐│ [Custom] [Green] [Blue] [Disable] │└──────────────────────────────────────────────┘Color Options
| Button | Color | Tooltip | Action |
|---|---|---|---|
| Custom | Sampled color | “Pick color from video” | Opens eyedropper |
| Green | #0bde0b | “Remove green color” | Standard green screen |
| Blue | #0072ff | “Remove blue color” | Blue screen removal |
| Disable | Ban icon | “Disable Chromakey” | Turns off chroma key |
Button States
Normal State
- Gray background (light: #bfbfcc, dark: #383e4c)
- 2px border matching dialog background
Selected State
- Blue highlight border (#0096ff)
- Light blue background (light: #e6f3ff, dark: #31435c)
Custom Color Picker
The custom button displays:
- The currently sampled color as background
- Eyedropper icon (
i_picker) - Icon color adapts for contrast (black on light, white on dark)
Color Display
When a custom color is selected:
- Button background shows the HSV color converted to RGB
- Brightness calculation determines icon color
Interactions
Selecting Preset Colors
- Click Green or Blue button
- Chroma key activates immediately
- Selected button shows highlight
Using Color Picker
- Click the Custom (eyedropper) button
- Cursor changes to color picker
- Click on the video to sample color
- Panel closes, chroma key applies
Disabling
- Click the Disable button (ban icon)
- Chroma key effect removed
- Original video restored
Panel Container
- Class:
tool_bar_drop_item - Height: 38px
- Centered flex layout
Button Styling
width: 36pxheight: 36pxmargin: 0 5pxborder-radius: 6pxborder: 2px solid