fix(color_picker): apply color when receiving ActionFinished message
This commit is contained in:
parent
e36f072c5a
commit
422d912634
1 changed files with 5 additions and 1 deletions
|
|
@ -188,7 +188,11 @@ impl ColorPickerModel {
|
|||
}
|
||||
ColorPickerUpdate::ActionFinished => {
|
||||
let srgb = palette::Srgb::from_color(self.active_color);
|
||||
|
||||
if let Some(applied_color) = self.applied_color.take() {
|
||||
self.recent_colors.push(applied_color);
|
||||
}
|
||||
self.applied_color = Some(Color::from(srgb));
|
||||
self.active = false;
|
||||
self.save_next = Some(Color::from(srgb));
|
||||
}
|
||||
ColorPickerUpdate::ToggleColorPicker => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue