refactor(color-picker): add method for getting the applied color

This commit is contained in:
Ashley Wulber 2023-10-02 15:27:25 -04:00 committed by Michael Murphy
parent f91287dec2
commit 6448b75e76

View file

@ -214,6 +214,12 @@ impl ColorPickerModel {
self.active
}
/// Get the applied color of the picker
#[must_use]
pub fn get_applied_color(&self) -> Color {
self.applied_color
}
#[must_use]
pub fn builder<Message>(
&self,