# API map of the "Colour controls and panels" family: old path to new path and setter renames. # Filled in by the family track; the codemods and the app scan read it. family = "Colour controls and panels" new_module = "" # One entry per public type: `old` is the path an app calls today, `new` the path after migration. # `status` is "pending", "same" (path unchanged), "moved", "replaced" (use `note`) or "removed". # One entry per renamed, removed or reshaped setter or constructor. # [[setter]] # type = "" # old = "" # new = "" [[type]] name = "Paint" old = "craft_color::ui::Paint" new = "craft_color::ui::Paint" status = "same" note = "`ImagePreview.texture` is `Option`; the `size` field is the texture's. `GradientPreview` and `ImagePreview` have constructors (`new`)." [[type]] name = "GradientPreview" old = "craft_color::ui::GradientPreview" new = "craft_color::ui::GradientPreview" status = "same" note = "`#[non_exhaustive]`; `GradientPreview::new(stops)`." [[type]] name = "ImagePreview" old = "craft_color::ui::ImagePreview" new = "craft_color::ui::ImagePreview" status = "same" note = "`#[non_exhaustive]`; `ImagePreview::new(name, texture)`; the `size` field is gone (`texture.size`)." [[type]] name = "FillKind" old = "craft_color::ui::FillKind" new = "craft_color::ui::FillKind" status = "same" note = "" [[type]] name = "PaintChip" old = "craft_color::ui::PaintChip" new = "craft_color::ui::PaintChip" status = "same" note = "A `Component`: `PaintChip::new(label, Bind::bound(&mut paint), fallback).show(ui)` replaces `PaintChip::new(salt, label, &paint, fallback, numbers).show(ui)`. No Color is offered with `none_allowed()` (a flag, off by default). The output is `PaintChipOutput { edit, screen_pick }`; the host answers a screen pick through `sampled`." [[type]] name = "PaintList" old = "craft_color::ui::PaintList" new = "craft_color::ui::PaintList" status = "same" note = "A `Pattern`: `PaintList::new(label, &paints, Bind::bound(&mut selected))`; the output is `PaintListOutput { response, selected, events }`, a rename is `PaintListEvent::Rename`. The row chip edit, hex and opacity fields wait for a row slot that holds field controls." [[type]] name = "PaintListResponse" old = "craft_color::ui::PaintListResponse" new = "" status = "removed" note = "Replaced by `PaintListOutput`." [[type]] name = "PaintListOutput" old = "" new = "craft_color::ui::PaintListOutput" status = "replaced" note = "`selected` is the row selected in the pass; `renamed` is folded into `events`." [[type]] name = "PaintLabels" old = "craft_color::ui::PaintLabels" new = "" status = "removed" note = "Replaced by `PaintWords`." [[type]] name = "PaintWords" old = "" new = "craft_color::ui::PaintWords" status = "replaced" note = "One word set holds the labels of the chip, its kinds and the list." [[type]] name = "PaintKindLabels" old = "craft_color::ui::PaintKindLabels" new = "" status = "removed" note = "Replaced by `PaintWords`." [[type]] name = "PaintListLabels" old = "craft_color::ui::PaintListLabels" new = "" status = "removed" note = "Replaced by `PaintWords`." [[type]] name = "PaintLink" old = "craft_color::ui::PaintLink" new = "craft_color::ui::PaintLink" status = "same" note = "`#[non_exhaustive]`; `PaintLink::new(name, kind)`." [[type]] name = "SwatchPair" old = "craft_color::ui::SwatchPair" new = "craft_color::ui::SwatchPair" status = "same" note = "A `Component` with parts `WELL.at(0|1)`: `SwatchPair::new(label, wells, Bind::bound(&mut active))`. The popup is the pair's own overlay holding the Compact picker." [[type]] name = "SwatchPairResponse" old = "craft_color::ui::SwatchPairResponse" new = "" status = "removed" note = "Replaced by `SwatchPairOutput`." [[type]] name = "SwatchPairOutput" old = "" new = "craft_color::ui::SwatchPairOutput" status = "replaced" note = "`edit` is `Option>`; `choice` is the `EditResponse` of the active well; `eyedropper_requested` and `picker_id` are `screen_pick`." [[type]] name = "SwatchPairStyle" old = "craft_color::ui::SwatchPairStyle" new = "" status = "replaced" note = "A `ComponentStyle`; sizes come from the theme." [[type]] name = "PairWell" old = "craft_color::ui::PairWell" new = "craft_color::ui::PairWell" status = "same" note = "`PairWell::new(label, color)` takes a `Label`." [[type]] name = "LutPicker" old = "craft_color::ui::LutPicker" new = "craft_color::ui::LutPicker" status = "same" note = "A `Component` over `Bind`; `folder(PathBuf)` sets the folder." [[type]] name = "LutPickerResponse" old = "craft_color::ui::LutPickerResponse" new = "" status = "removed" note = "Replaced by `LutPickerOutput`." [[type]] name = "LutPickerOutput" old = "" new = "craft_color::ui::LutPickerOutput" status = "replaced" note = "The output of `LutPicker`, in place of `LutPickerResponse`." [[type]] name = "LutPickerLabels" old = "craft_color::ui::LutPickerLabels" new = "" status = "removed" note = "Replaced by `LutWords`." [[type]] name = "LutWords" old = "" new = "craft_color::ui::LutWords" status = "replaced" note = "`LUT_WORDS` is folded into `LutWords`." [[type]] name = "ProfileMismatchDialog" old = "craft_color::ui::ProfileMismatchDialog" new = "craft_color::ui::ProfileMismatchDialog" status = "same" note = "A `StackDialog` on `Prompt`." [[type]] name = "ProfileLabels" old = "craft_color::ui::ProfileLabels" new = "" status = "removed" note = "Replaced by `ProfileWords`." [[type]] name = "ProfileWords" old = "" new = "craft_color::ui::ProfileWords" status = "replaced" note = "The words of the profile controls, in place of the old label structs." [[type]] name = "ColorArea" old = "craft_color::ui::ColorArea" new = "craft_color::ui::ColorArea" status = "same" note = "`new(label, mode, Bind)` in place of `new(id_salt, label, mode, values)`; a composite over a `PointPicker`, so Home, End, Page Up and Page Down on the area are the picker's. `show(ui)` returns `EditResponse`." [[type]] name = "ColorStrip" old = "craft_color::ui::ColorStrip" new = "craft_color::ui::ColorStrip" status = "same" note = "`new(label, mode, Bind)`; `show(ui)` returns `EditResponse`. The pointer triangles are painted outside its rect." [[type]] name = "ColorRamp" old = "craft_color::ui::ColorRamp" new = "craft_color::ui::ColorRamp" status = "same" note = "`new(label, kind, Bind)`; `show(ui)` returns `ColorRampOutput`. `color_at` is unchanged." [[type]] name = "RampKind" old = "craft_color::ui::RampKind" new = "craft_color::ui::RampKind" status = "same" note = "`#[non_exhaustive]`." [[type]] name = "RampPick" old = "craft_color::ui::RampPick" new = "craft_color::ui::RampPick" status = "same" note = "`#[non_exhaustive]`; built with `RampPick::new(color, other)`." [[type]] name = "ColorRampResponse" old = "craft_color::ui::ColorRampResponse" new = "" status = "removed" note = "Replaced by `ColorRampOutput`." [[type]] name = "ColorRampOutput" old = "" new = "craft_color::ui::ColorRampOutput" status = "replaced" note = "`ColorRampOutput { edit, cycle, menu_at }`; the `bar` response is `edit.response`. An `Outcome`." [[type]] name = "ColorRampStyle" old = "craft_color::ui::ColorRampStyle" new = "craft_color::ui::ColorRampStyle" status = "replaced" note = "A `ComponentStyle`; sizes come from named tokens and no field is public." [[type]] name = "ColorDisc" old = "craft_color::ui::ColorDisc" new = "craft_color::ui::ColorDisc" status = "same" note = "`new(label, &[Srgba], Bind)`; `show(ui)` returns `ColorDiscOutput`." [[type]] name = "DiscMove" old = "craft_color::ui::DiscMove" new = "craft_color::ui::DiscMove" status = "same" note = "`#[non_exhaustive]`; built with `DiscMove::new(marker, hue, saturation)`." [[type]] name = "ColorDiscResponse" old = "craft_color::ui::ColorDiscResponse" new = "" status = "removed" note = "Replaced by `ColorDiscOutput`." [[type]] name = "ColorDiscOutput" old = "" new = "craft_color::ui::ColorDiscOutput" status = "replaced" note = "`ColorDiscOutput { edit, pressed, grabbed }`; `area` and `markers` are gone. An `Outcome`." [[type]] name = "ColorDiscStyle" old = "craft_color::ui::ColorDiscStyle" new = "craft_color::ui::ColorDiscStyle" status = "replaced" note = "A `ComponentStyle`; no field is public." [[type]] name = "ColorWheel" old = "craft_color::ui::ColorWheel" new = "craft_color::ui::ColorWheel" status = "same" note = "`new(label, Bind)`; `show(ui)` returns `EditResponse`." [[type]] name = "ColorWheelResponse" old = "craft_color::ui::ColorWheelResponse" new = "" status = "removed" note = "The output is `EditResponse`; `area`, `geometry`, `ring` and `triangle` are gone." [[type]] name = "ColorWheelStyle" old = "craft_color::ui::ColorWheelStyle" new = "craft_color::ui::ColorWheelStyle" status = "replaced" note = "A `ComponentStyle`; no field is public." [[type]] name = "WheelGeometry" old = "craft_color::ui::WheelGeometry" new = "craft_color::ui::WheelGeometry" status = "same" note = "`#[non_exhaustive]`; pure." [[type]] name = "WheelPart" old = "craft_color::ui::WheelPart" new = "craft_color::ui::WheelPart" status = "same" note = "`#[non_exhaustive]`." [[type]] name = "ColorPartsStyle" old = "craft_color::ui::ColorPartsStyle" new = "" status = "removed" note = "Each part has its own `ComponentStyle`; a disabled part is faded by the pipeline." [[setter]] type = "ColorArea" old = "size" new = "" note = "The size is the picker's." [[setter]] type = "ColorArea" old = "policy" new = "" note = "Set on the binding with `Bind::policy`." [[setter]] type = "ColorArea" old = "enabled" new = "same" note = "The common `enabled` prop." [[setter]] type = "ColorArea" old = "channel_names" new = "names" note = "`names([Label; 2])`." [[setter]] type = "ColorArea" old = "quantize" new = "quantize" note = "The prop takes the levels as before." [[setter]] type = "ColorStrip" old = "size" new = "" note = "The size is the style's." [[setter]] type = "ColorStrip" old = "outer_width" new = "" note = "The pointers are painted outside the rect." [[setter]] type = "ColorStrip" old = "style" new = "" note = "A `ComponentStyle`." [[setter]] type = "ColorRamp" old = "height" new = "" note = "The height is the style's." [[setter]] type = "ColorRamp" old = "policy" new = "" note = "Set on the binding with `Bind::policy`." [[setter]] type = "ColorRamp" old = "press_waits" new = "" note = "Press order is the pipeline's." [[setter]] type = "ColorRamp" old = "texts" new = "" note = "The boxes are named by `ColorRampWords`." [[setter]] type = "ColorRamp" old = "kind_name" new = "kind_name" note = "Takes a `Label`." [[setter]] type = "ColorRamp" old = "ends" new = "ends" note = "Takes `[Srgba; 2]`." [[setter]] type = "ColorRamp" old = "gamut" new = "gamut" note = "Takes any `Fn(Srgba) -> Srgba`." [[setter]] type = "ColorRamp" old = "gamut_revision" new = "gamut_revision" note = "Unchanged." [[setter]] type = "ColorRamp" old = "web_safe" new = "web_safe" note = "Unchanged." [[setter]] type = "ColorRamp" old = "boxes" new = "boxes" note = "Unchanged." [[setter]] type = "ColorDisc" old = "side" new = "" note = "The size is the style's." [[setter]] type = "ColorDisc" old = "text" new = "" note = "The words are `ColorDiscWords`." [[setter]] type = "ColorDisc" old = "names" new = "names" note = "Takes `Vec