From e082e69b03ba8f3c2c0b7a5690f362139efe263f Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 16 Oct 2026 04:22:38 +0000 Subject: [PATCH] Integration: #1081 the proxy test fills the Color Picker's rgb, model and edited fields, as the batch's picker reads them --- crates/ui-egui/src/toolbar.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rs index 8e8c9894..ea53c099 100644 --- a/crates/ui-egui/src/toolbar.rs +++ b/crates/ui-egui/src/toolbar.rs @@ -846,7 +846,11 @@ mod tests { h.run_steps(3); let app = h.state_mut(); assert_eq!(app.ui.dialog.as_ref().map(|d| d.id.as_str()), Some("colorPicker")); - app.ui.dialog.as_mut().unwrap().fields.insert("hex".into(), json!("#7c1315")); + let d = app.ui.dialog.as_mut().unwrap(); + // What the picker's fields hold after #7c1315 is typed. + for (k, v) in [("hex", json!("#7c1315")), ("rgb", json!([0x7c, 0x13, 0x15])), ("model", json!("rgb")), ("edited", json!(true))] { + d.fields.insert(k.into(), v); + } crate::dialogs::confirm(app).unwrap(); // Apply None with the stroke in front. app.ui.stroke_front = true;