muZZkat/NMRangeSlider

Track image color

Closed this issue · 7 comments

Thanks for the great slider.
I am using this slider for my small app. I add this slider programmatically according to guidelines in demo project.
But it doesn't show yellow color for track image. I've changed the color for slider-default7-track.png.
However it still shows blue color .
Could you possibly help me solve this issue ?

Thanks in advance.

The the control uses the default images it uses tinColor for the track. You can just leave the images the same.

However, I don't see the yellow color even if I just copy and past the code piece.
That's why I tried to change the color . But still shows blue color .
Is there any way to change the color or image for slider track?

On Aug 21, 2014, at 2:45 AM, Murray Hughes notifications@github.com wrote:

The the control uses the default images it uses tinColor for the track. You can just leave the images the same.


Reply to this email directly or view it on GitHub.

I just added this line of code to the demo and it worked perfectly. If you want to use other images you just need to set them manually. see configureMetalThemeForSlider

rangeSlider.tintColor = [UIColor yellowColor];

Great thanks !

I have another quick question. Is there a way to change the color of track background?
It shows grey color . I want to change it as white .

Thanks in advance.

For the background track color you just need to change the color of the image. I might add a way to set the background track tint color as well. Feel free to add it yourself and submit a pull request.

It works !
Thanks again

On Aug 23, 2014, at 2:40 AM, Murray Hughes notifications@github.com wrote:

For the background track color you just need to change the color of the image. I might add a way to set the background track tint color as well. Feel free to add it yourself and submit a pull request.