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

Shadow color is removed when the button is disabled and re-enabled #25

Open
Anixed opened this issue Jul 22, 2015 · 0 comments
Open

Shadow color is removed when the button is disabled and re-enabled #25

Anixed opened this issue Jul 22, 2015 · 0 comments

Comments

@Anixed
Copy link

Anixed commented Jul 22, 2015

When the button is disabled and then re-enable the shadow color is removed, returning to its default with a 80% brightness.

The solution is remove the variable mShadowColor of allocation on line 174 in FButton.java

int disabledColor = mShadowColor = Color.HSVToColor(alpha, hsv);

like this:

int disabledColor = Color.HSVToColor(alpha, hsv);

According to me analysis i think that's the best solution, because as the shadow is not displayed when the button is disabled then i do not see it necessary remove the color designated by us.

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

1 participant