diff --git a/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs b/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs index 08b718d3a..ec8285e12 100644 --- a/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs +++ b/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs @@ -980,6 +980,11 @@ impl HostedParamDialog { self.requests.preview_color(key, color); } + /// The colours the colour rows preview in place of their values, by row key ([`preview_color`](Self::preview_color)). + pub fn previewed_colors(&self) -> &[(String, Srgba)] { + self.requests.previewed_colors() + } + /// The host cancelled its picker, file dialog or dropper: the requests not taken yet are dropped. pub fn cancel_requests(&mut self) { self.requests.cancel();