-
Notifications
You must be signed in to change notification settings - Fork 128
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
VisImageButton getImage().setColor(color) does not work. #355
Comments
It's likely due to these lines: if (generateDisabledImage && style.imageDisabled == null && isDisabled())
image.setColor(Color.GRAY);
else
image.setColor(Color.WHITE); The color is overridden to support the automatic disabled icon generation. I think the if (generateDisabledImage && style.imageDisabled == null) {
if (isDisabled())
image.setColor(Color.GRAY);
else
image.setColor(Color.WHITE);
} @unenergizer Would you like to test this and submit a pull request? |
@czyzby I can confirm that this does indeed work. I copied the entire
|
You have to make a fork of the library (top right icon), make the required changes in code and click on the pull request button. See this article for more details. |
Thank you both, I've fixed it. |
As stated in the title, when I do
visImageButton.getImage().setColor(Color.RED);
Nothing happens. I can set a color to the background but that is about it. However, if I do the same thing using a regular ImageButton, it works just fine.The text was updated successfully, but these errors were encountered: