chore(appearance): Remove unused function
This function used to reset the color picker but was replaced and is not needed anymore.
This commit is contained in:
parent
907bddd46b
commit
9d296353e3
1 changed files with 0 additions and 19 deletions
|
|
@ -465,22 +465,3 @@ impl Content {
|
|||
.map(crate::pages::Message::Appearance)
|
||||
}
|
||||
}
|
||||
|
||||
fn reset_color_control(
|
||||
field: &mut ColorPickerModel,
|
||||
manager: &theme_manager::Manager,
|
||||
context_view: ContextView,
|
||||
) -> Vec<Task<app::Message>> {
|
||||
let mut tasks = Vec::new();
|
||||
|
||||
let color = manager.get_color(&context_view).map(Srgb::from);
|
||||
|
||||
if let Some(c) = color {
|
||||
tasks.push(field.update(ColorPickerUpdate::ActiveColor(Hsv::from_color(c))));
|
||||
tasks.push(field.update(ColorPickerUpdate::AppliedColor));
|
||||
} else {
|
||||
tasks.push(field.update(ColorPickerUpdate::Reset));
|
||||
}
|
||||
|
||||
tasks
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue