[GH-ISSUE #1069] Is it possible to overlay a widget or form over an image? #776

Closed
opened 2026-03-04 01:07:39 +03:00 by kerem · 3 comments
Owner

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

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
kerem closed this issue 2026-03-04 01:07:40 +03:00
Author
Owner

@rivo commented on GitHub (Jan 10, 2025):

You might want to look at the Modal Wiki page:

https://github.com/rivo/tview/wiki/Modal

<!-- gh-comment-id:2582408630 --> @rivo commented on GitHub (Jan 10, 2025): You might want to look at the Modal Wiki page: https://github.com/rivo/tview/wiki/Modal
Author
Owner

@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

<!-- gh-comment-id:2585572065 --> @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
Author
Owner

@sprive commented on GitHub (Feb 22, 2025):

Hi @digitallyserviced

Thanks. So where it is the text background animated and repeated, that entire background area would be using the Image() primitive: https://github.com/rivo/tview/wiki/Image

But 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.

<!-- gh-comment-id:2676216900 --> @sprive commented on GitHub (Feb 22, 2025): Hi @digitallyserviced Thanks. So where it is the text `background` animated and repeated, that entire background area would be using the `Image()` primitive: https://github.com/rivo/tview/wiki/Image But 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#776
No description provided.