Skip to content

Commit

Permalink
gui(settings): add a copy button for electrum server address
Browse files Browse the repository at this point in the history
  • Loading branch information
pythcoiner committed Dec 20, 2024
1 parent 46cb154 commit b5cf4ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion liana-gui/src/app/view/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,14 @@ pub fn electrum<'a>(
col_fields = col_fields.push(
Row::new()
.push(Container::new(text(k).bold().small()).width(Length::Fill))
.push(text(v).small()),
.push(text(v.clone()).small())
.push(Space::with_width(10))
.push(
Button::new(icon::clipboard_icon())
.style(theme::Button::TransparentBorder)
.on_press(SettingsEditMessage::Clipboard(v.to_string())),
)
.align_items(Alignment::Center),
);
}

Expand Down

0 comments on commit b5cf4ad

Please sign in to comment.