Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Background color/image configuration #157

Open
BowlBird opened this issue May 30, 2023 · 3 comments
Open

Background color/image configuration #157

BowlBird opened this issue May 30, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@BowlBird
Copy link

Hello, I know that this is pretty lightweight and I'm unsure of the full capabilities of TUIs in general, however I think it would be cool if Lemurs could support setting an image or color for the background. Thanks :)

@coastalwhite
Copy link
Owner

Yeah, I think this is quite a reasonable idea and should not be too difficult with tui-rs. I am not sure how it would look in an actual TTY though.

@coastalwhite coastalwhite added enhancement New feature or request good first issue Good for newcomers labels May 30, 2023
@danma3x
Copy link
Contributor

danma3x commented Jun 30, 2023

Shouldn't this be pretty straightforward with what we have in ratatui?

So, for background color, we could simply render a fullscreen Block first.
With an image, however, it's a bit of a different story, there's a lot of ways one could go about it and knobs to add in the config.rs.

With rendering itself, Canvas or a custom widget seems like it would be enough. But it would add a dependency on image decoding libraries, which is concerning, even if we hide it behind a feature flag.

@coastalwhite
Copy link
Owner

Yeah, it should be fairly easy to add a background colour.

I would be in favour of adding this as a background colour first. Then, maybe we can do a similar thing to Ly and add some different background effects.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants