mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-01 14:08:38 -06:00
#712: register an automation id for the popup eyedropper's viewer surface
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RDvxCS8xcR28VArjzn1x7U
This commit is contained in:
@@ -186,6 +186,8 @@ fn popup_eyedropper(app: &mut EffectcraftApp, ui: &mut egui::Ui, painter: &egui:
|
||||
return;
|
||||
}
|
||||
let _ = ui.interact(map.area, egui::Id::unique("viewer-popup-eyedropper"), Sense::click());
|
||||
// The sampling surface, apart from the picker's button that arms it (`colorPicker.eyedropper`).
|
||||
app.auto.add("viewer.colorPickerEyedropper", map.area, "Sample color");
|
||||
ctx.set_cursor_icon(egui::CursorIcon::Crosshair);
|
||||
app.viewer_pixels();
|
||||
let chip = Rect::from_min_size(map.area.min + vec2(10.0, 10.0), vec2(220.0, 22.0));
|
||||
|
||||
Reference in New Issue
Block a user