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

Simple support for to handle differents icons with backward compatibi… #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lo-g
Copy link

@lo-g lo-g commented May 9, 2017

My goal was to have differents thumb images.

For to reduce at minimun check against all provided icons (normal, disabled, presses) for both thumbs, I thought to proceed in the following way:

  1. If thumbNormal is provided -> everything works normally as now
  2. if thumbNormalLeft AND thumbNormaRight are provided AND they have same dimensions -> set different icons.
  3. if dimension of thumbNormalLeft and thumbNormaRight are different -> fallback to default case with default assets.

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

Successfully merging this pull request may close these issues.

1 participant