This commit is contained in:
Dr. Dystopia 2021-12-18 15:58:17 +01:00
parent 65ab92eb78
commit 1719ce8c16

View File

@ -500,32 +500,35 @@ impl Controls {
(255, 255, 255)
};
Overlay::new(
Container::new(Row::with_children(vec![
// Edit button
Button::new(
edit_button,
Space::new(Length::Units(16), Length::Units(16)),
)
.style(
style::button::Style::new(imgs.edit_button)
.hover_image(imgs.edit_button_hover)
.press_image(imgs.edit_button_press),
)
.on_press(Message::Edit(i))
.into(),
// Delete button
Button::new(
delete_button,
Space::new(Length::Units(16), Length::Units(16)),
)
.style(
style::button::Style::new(imgs.delete_button)
.hover_image(imgs.delete_button_hover)
.press_image(imgs.delete_button_press),
)
.on_press(Message::Delete(i))
.into(),
]).spacing(5))
Container::new(
Row::with_children(vec![
// Edit button
Button::new(
edit_button,
Space::new(Length::Units(16), Length::Units(16)),
)
.style(
style::button::Style::new(imgs.edit_button)
.hover_image(imgs.edit_button_hover)
.press_image(imgs.edit_button_press),
)
.on_press(Message::Edit(i))
.into(),
// Delete button
Button::new(
delete_button,
Space::new(Length::Units(16), Length::Units(16)),
)
.style(
style::button::Style::new(imgs.delete_button)
.hover_image(imgs.delete_button_hover)
.press_image(imgs.delete_button_press),
)
.on_press(Message::Delete(i))
.into(),
])
.spacing(5),
)
.padding(4),
// Select Button
AspectRatioContainer::new(