Expand description
Native productivity picker-dialog foundation.
The always-compiled, backend-agnostic data vocabulary shared by the
ColorDialog and FontDialog families (docs/widget-expansion-roadmap.md
sections 12-14): the additive Rgba colour representation, the portable
FontDescriptor/FontEffects pair, the serializable dialog
preferences (ColorDialogData, FontDialogData) with their validation
rules, and the typed PickerError set.
No widget, Ui method, backend call, or native dialog lives here. The
shared API (WidgetKind + setters), events, and Mock fixtures land with
the colour and font picker work, and the accepted/cancelled answer is the documented
Option<T> event payload (None = cancelled) plus typed capability
errors, not a separate token type.
Validation stays in the shared tier on purpose: the palette cap and the
font size range behave identically on every lane, even where the native
dialog cannot restrict itself (the roadmap’s F2 note about
font_dialog_size_range).
Structs§
- Color
Dialog Data - Serializable preferences and current state of a colour dialog (C1-C2).
- Font
Descriptor - A portable font description: family, size, weight, and slant.
- Font
Dialog Data - Serializable preferences and current state of a font dialog (F1-F2).
- Font
Effects - Optional font effects a dialog can offer (capability group F2).
- Rgba
- A colour with an alpha channel (8 bits per channel).
Enums§
- Font
Weight - Font weight steps available to the portable font descriptor.
- Picker
Error - Error returned by the shared picker-dialog validation rules.
Constants§
- MAX_
CUSTOM_ COLORS - How many custom palette entries a colour dialog carries (wx parity).
Type Aliases§
- Picker
Result - Result type for the shared picker-dialog validation rules.