Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Background color for all views? #60

Open
ionarevamp opened this issue Sep 13, 2024 · 4 comments
Open

Background color for all views? #60

ionarevamp opened this issue Sep 13, 2024 · 4 comments

Comments

@ionarevamp
Copy link

I have noticed that setting a background color doesn't work for every view item, for example textview and layouts.

Currently, I am making a Termux:GUI app which would be enhanced if the background behind text or the layout upon which a button sits could have a different background color.

Is support for this planned/feasible?

@ionarevamp
Copy link
Author

It should be noted that I solved the problem in a different way, by putting an image view and the desired view inside of a frame view, in that order, and setting the image to be a single-pixel image file of the desired color in order to set a background color.

@tareksander
Copy link
Member

TextViews themselves just don't have a background, however setting the background color in a containing FrameView should work.

@ionarevamp
Copy link
Author

TextViews themselves just don't have a background, however setting the background color in a containing FrameView should work.

This doesn't seem to work, in either the bash or Rust implementations :/
( I know the Rust version is not officially maintained, but it works well enough and I'm not going to use C or Python for this )

@tareksander
Copy link
Member

tareksander commented Sep 14, 2024

It's a bug in the plugin, then. I put it on my to-do list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants