Closed bbb651 closed 8 months ago
I have no idea on how this would be implemented since this indeed would have some cross platform differences. So yes there would need to be some buffer crate for this. Maybe winit has something here? but cant rely on that crate fully just in case Iced starts to support others that don't.
I am closing this as Window would need to support this and none of them that I know of does atm for these events.
It would be nice if the color picker widget overlay showed an eye dropper.
There doesn't seem to be any cross platform eye dropper crates, I've tried to find the simplest way (that don't involve taking a screenshot and extracting one pixel from it) for each platform:
These can probably live in a separate
eyedropper
crate.The main problem I can think of is that picking a color from the screen is an inherently an asynchronous operation (will often be several seconds until the user clicks a color) and is actually an
async fn
for linux and web, and I'm not sure how that fits into a widget in iced...