Merge #741: Single "Add label" button
15851383a797b30eb0736fd06d0197485a1fda23 Single Add label button (edouard) Pull request description: discussion in #732 ACKs for top commit: edouardparis: Self-ACK 15851383a797b30eb0736fd06d0197485a1fda23 Tree-SHA512: 50637d615e1352a9418ef6f8598835ee9e8c220413a1a43bbf8dd71b513ca51546737fd667f50ad2e69070790af68ece6cc56a062045b7a6dac690e0f761fc1b
This commit is contained in:
commit
26d750d09c
@ -1,7 +1,6 @@
|
||||
use iced::{widget::row, Alignment};
|
||||
|
||||
use liana_ui::{
|
||||
color,
|
||||
component::{button, form},
|
||||
icon,
|
||||
widget::*,
|
||||
@ -33,17 +32,10 @@ pub fn label_editable(
|
||||
}
|
||||
}
|
||||
Container::new(
|
||||
row!(
|
||||
iced::widget::Text::new("Add Label")
|
||||
.size(size)
|
||||
.style(color::GREY_3),
|
||||
button::primary(Some(icon::pencil_icon()), "Edit").on_press(view::Message::Label(
|
||||
labelled,
|
||||
view::message::LabelMessage::Edited(String::default())
|
||||
))
|
||||
)
|
||||
.spacing(5)
|
||||
.align_items(Alignment::Center),
|
||||
button::primary(Some(icon::pencil_icon()), "Add label").on_press(view::Message::Label(
|
||||
labelled,
|
||||
view::message::LabelMessage::Edited(String::default()),
|
||||
)),
|
||||
)
|
||||
.into()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user