mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 00:34:25 +00:00
fwb2-fix: HostedParamDialog::previewed_colors
(cherry picked from commit ca7ef21f2d525946fad41a1f00496ecdce558189)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user