Add a third tint color to enhance the UI experience#241
Add a third tint color to enhance the UI experience#241Monir-Shembesh wants to merge 2 commits intobartgryszko:masterfrom
Conversation
|
hey @Monir-Shembesh when I was making my changes I thought of this edge-case being super useful but was too lazy to add it. Wouldn't it be more beneficial to keep |
|
Hi @talhaazhar check this implementation then? so what I am aiming for here is instead of using tint color and then tintColorSecondary to achieve more than one color effect, we give the developer the option to either choose a single color or two or more colors. before: after: The issue now is how to tell the developers that multi color prop will need minimum of two colors otherwise output range will throw an error |
|
Hey @Monir-Shembesh, this looks great. However, appending
This way the Although, the real solution would be to remove tintColor all together and just have the array color option. I don't know if that'd be too dramatic of a change for old users though. |
|
yh |
|
I already agree with the idea of removing |
|
Yh I agree with |
Neat thought! My idea would be completely removing the And parse the transition array For instance, without providing the array and |
Hi, i was going to cook some code for this and I actually did but was never able to push it as I got bombarded with work. Check my final solution i came up with to this matter. If you guys accept this solution then let me know asap and i will send a pull request and document the README file if any changes are needed. @aboveyunhai @talhaazhar |
|
It looks great. Just make sure to search |
|
Using Most importantly, |
|
@aboveyunhai I see your point of view but let me run you through some points. Documentation is key, If you add a literal to Lastly, this current change will not break on of the apps that are using the current version unless they are directly pulling the repo in their I think the final decision will come down to what the repo owner @bartgryszko sees most suitable. But we are a community and if you feel like you have a better solution please help us make things better :D. |
|
Hi all, please do no merge this branch yet i am going to make change the code to add an end percentage. Will explain more either TMW or After |
|
hello #Monir did you change the code that you mentioned above? |
|
@fareedagha sorry for late response. I will be sending the pull request later at night Today. |
|
@Monir-Shembesh thanks, please let me know once you done with pull request |
|
@Monir-Shembesh Is this feature abandoned? |
|
Guys, we urgently need the ability to multi colors |
Would you be able to finish the PR? |
|
Is this feature abandoned? |
@ManigandanRaamanathan if you could finish the PR, fixing the merge issues it can be merged :) |
After testing with only two tint colors the progress circle felt limited. For example, going from the color 'green' to the color 'red' at 100% produces a weird darkish 'green' color at 50%. Where as, some developers such as myself would like the 50% bar to be a yellow tint color. The solution is simple and straight forward, I have added a third tint color to enable a smoother color transition.
Reference: Traffic Light, credit card balance limit reached(green, yellow, red)