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) (255, 255, 255)
}; };
Overlay::new( Overlay::new(
Container::new(Row::with_children(vec![ Container::new(
// Edit button Row::with_children(vec![
Button::new( // Edit button
edit_button, Button::new(
Space::new(Length::Units(16), Length::Units(16)), edit_button,
) Space::new(Length::Units(16), Length::Units(16)),
.style( )
style::button::Style::new(imgs.edit_button) .style(
.hover_image(imgs.edit_button_hover) style::button::Style::new(imgs.edit_button)
.press_image(imgs.edit_button_press), .hover_image(imgs.edit_button_hover)
) .press_image(imgs.edit_button_press),
.on_press(Message::Edit(i)) )
.into(), .on_press(Message::Edit(i))
// Delete button .into(),
Button::new( // Delete button
delete_button, Button::new(
Space::new(Length::Units(16), Length::Units(16)), delete_button,
) Space::new(Length::Units(16), Length::Units(16)),
.style( )
style::button::Style::new(imgs.delete_button) .style(
.hover_image(imgs.delete_button_hover) style::button::Style::new(imgs.delete_button)
.press_image(imgs.delete_button_press), .hover_image(imgs.delete_button_hover)
) .press_image(imgs.delete_button_press),
.on_press(Message::Delete(i)) )
.into(), .on_press(Message::Delete(i))
]).spacing(5)) .into(),
])
.spacing(5),
)
.padding(4), .padding(4),
// Select Button // Select Button
AspectRatioContainer::new( AspectRatioContainer::new(