slurp icon indicating copy to clipboard operation
slurp copied to clipboard

Add prompt text option

Open emersion opened this issue 4 years ago • 2 comments

Add an option for a prompt text, ie. text displayed to explain to users what to select.

Still unsure how it should look like.

Ref https://github.com/emersion/xdg-desktop-portal-wlr/issues/121

emersion avatar Apr 27 '21 07:04 emersion

I can do a quick visual mock of what I had in mind.

danshick avatar Apr 27 '21 12:04 danshick

This is how I had envisioned the overlay chooser working when I had still planned to build a custom layer-shell app for the purpose. It could take a custom text string per "region" that was available for selection, highlight the region currently selected, and dim the others.

I had also planned to add keyboard selection too, and the overlay would have included some indication of which keys were usable for the selection, and a note that the whole thing could be cancelled with the "Esc" key.

Note: The "A" and "B" text is rendered in the browsers behind the overlay. Just did that to differentiate the screens a little.

This may be overly complicated for slurp's scope. It doesn't have to look exactly like this, especially the text that varies based on the selection. I think a single unchanging string would more than suffice.

mockup

danshick avatar Apr 27 '21 14:04 danshick