refactor(color-picker): add method for getting the applied color
This commit is contained in:
parent
f91287dec2
commit
6448b75e76
1 changed files with 6 additions and 0 deletions
|
|
@ -214,6 +214,12 @@ impl ColorPickerModel {
|
||||||
self.active
|
self.active
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the applied color of the picker
|
||||||
|
#[must_use]
|
||||||
|
pub fn get_applied_color(&self) -> Color {
|
||||||
|
self.applied_color
|
||||||
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn builder<Message>(
|
pub fn builder<Message>(
|
||||||
&self,
|
&self,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue