mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 01:24:21 +01:00
feat(profile): add tooltip on copy npub
This commit is contained in:
committed by
William Casarin
parent
ac85bdc21d
commit
befce76a90
@@ -304,11 +304,13 @@ fn copy_key_widget(pfp_rect: &egui::Rect) -> impl egui::Widget + '_ {
|
|||||||
pfp_rect.center_bottom(),
|
pfp_rect.center_bottom(),
|
||||||
egui::vec2(48.0, 28.0),
|
egui::vec2(48.0, 28.0),
|
||||||
));
|
));
|
||||||
let resp = ui.interact(
|
let resp = ui
|
||||||
copy_key_rect,
|
.interact(
|
||||||
ui.id().with("custom_painter"),
|
copy_key_rect,
|
||||||
Sense::click(),
|
ui.id().with("custom_painter"),
|
||||||
);
|
Sense::click(),
|
||||||
|
)
|
||||||
|
.on_hover_text("Copy npub to clipboard");
|
||||||
|
|
||||||
let copy_key_rounding = CornerRadius::same(100);
|
let copy_key_rounding = CornerRadius::same(100);
|
||||||
let fill_color = if resp.hovered() {
|
let fill_color = if resp.hovered() {
|
||||||
|
|||||||
Reference in New Issue
Block a user