mod color;
#[cfg(feature = "alpha")]
mod alpha_slider;
mod brightness_slider;
#[cfg(feature = "alpha")]
mod checkerboard;
mod color_editor;
mod color_wheel;
mod constants;
#[cfg(all(feature = "eyedropper", target_os = "macos"))]
mod eyedropper;
mod inputs;
mod math;
pub use color::SolidColor;
use std::sync::Once;
use floem::prelude::*;
use floem::reactive::RwSignal;
use floem::text::FONT_SYSTEM;
static LOAD_LUCIDE_FONT: Once = Once::new();
pub fn solid_picker(color: RwSignal<SolidColor>) -> impl IntoView {
LOAD_LUCIDE_FONT.call_once(|| {
FONT_SYSTEM
.lock()
.db_mut()
.load_font_data(lucide_icons::LUCIDE_FONT_BYTES.to_vec());
});
color_editor::color_editor(color)
}