mikedilger / gossip

Gossip is a nostr client
Other
687 stars 77 forks source link

Text / Search input - Custom component #637

Open dtonon opened 7 months ago

dtonon commented 7 months ago

The text input is available in the Basic and Search styles, with the usual states.

Screenshot 2024-02-03 alle 18 03 01 Screenshot 2024-02-03 alle 18 03 35
bu5hm4nn commented 7 months ago

For the Wizard I created the option to display a "Paste" clickable text that will paste from clipboard, do we still want to support that? Alternatively, we could create a context menu that has Copy, Cut, Paste actions (as people expect from other desktop apps).

dtonon commented 7 months ago

For the paste action I would prefer putting it outside the input, so it does not interfere with the text. This position is handy for other kinds of source options in other contexts (e.g. "pick from the contacts" that opens a modal).

image



Alternatively, we could create a context menu that has Copy, Cut, Paste actions

If it is doable without fight to much with egui, it would be a really nice addition!

dtonon commented 7 months ago

@bu5hm4nn in the Figma project I updated the font size to match that in the new Button component.