floem-picker 0.2.0

A simple color picker widget for Floem
Documentation

floem-picker

Crates.io Documentation Rust

Simple color picker widget for Floem, works with both vger (left) and vello (right) backends.

Notes

The eyedropper functionality is only available for macOS because:

  1. It has FFI bindings to NSColorSampler,
  2. There's no built-in Windows equivalent (as far as I'm aware), and
  3. The Linux equivalent appears to be buggy.

If macOS isn't detected, it should simply disable the eyedropper button and retain the rest of the functionality, but if you want to explicitly exclude it, add this to your Cargo.toml:

[dependencies]
floem-picker = { version = "0.2", default-features = false, features = ["alpha"] }

Credits

Inspired by System Color Picker