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
parent f91287dec2
commit be7607f37a
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

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,