Skip to main content

Module style_inspector

Module style_inspector 

Source
Expand description

Style inspector — background framing (ED.18 / M-EDIT).

The “look” panel: the backdrop the screen sits on (a gradient or flat fill) plus the padding, corner radius, and drop shadow that lift the recording off it — the produced, on-a-nice-desktop framing every modern screen recorder ships. All of it drives one [BackgroundConfig] on the project, re-derived at render time; the visible framing (the drawn padding / rounded canvas / shadow) lands with the render-integration / export pass (ED.20 / ED.21). This chunk is the authoring side, undoable through the shared [edit::History].

Structs§

StyleInspectorProps
Props for the StyleInspector component.

Functions§

StyleInspector
The style inspector: backdrop swatches + padding / radius / shadow.
background_presets
Background swatch presets, in display order.
is_active_source
Whether two background sources are the same preset.
number_field 🔒
One labelled numeric field bound to a BackgroundConfig field.
parse_u32_field
Parse a numeric field to a u32, clamped to 0..=max. Non-numeric → 0.
source_css
A CSS background value for a [BackgroundSource] — used both for the swatch previews and (eventually) the live canvas backdrop.
swatches 🔒

Type Aliases§

HistoryStore 🔒
ProjectSignal 🔒