mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #1069] Is it possible to overlay a widget or form over an image? #776
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#776
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sprive on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1069
Hello
Is it possible to have an image as a background in a form?
By this I mean, starting from the wiki image example: https://github.com/rivo/tview/wiki/Image except the form would be positioned inside the bounding box of the image.
thanks
@rivo commented on GitHub (Jan 10, 2025):
You might want to look at the Modal Wiki page:
https://github.com/rivo/tview/wiki/Modal
@sprive commented on GitHub (Jan 12, 2025):
Thanks Oliver. In that model example, I see that you can have a background, which is color. Instead of a color, can the background be an image?
Something like this:
https://c8.alamy.com/comp/F690PR/login-form-page-with-blurred-background-web-site-template-ui-element-F690PR.jpg
.. where we have 2 form fields positioned over a background image.
Is this currently possible? Thanks
@sprive commented on GitHub (Feb 22, 2025):
Hi @digitallyserviced
Thanks. So where it is the text
backgroundanimated and repeated, that entire background area would be using theImage()primitive: https://github.com/rivo/tview/wiki/ImageBut I think I can repurpose your example, and rivo's reply to my question suggests Modal could do it (overlay a dialog over the image, and since a modal can contain a form that is very close). So I should close this, and I need to sit down and play with this more. Cheers.