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
feat(ios,android): expose Ti.UI.Slider „tintColor“ and „trackTintColor“ #11074
Conversation
|
if (d.containsKey(TiC.PROPERTY_TINT_COLOR)) { | ||
handleSetTintColor(TiConvert.toColor(d, TiC.PROPERTY_TINT_COLOR)); | ||
} | ||
if (d.containsKey(TiC.PROPERTY_TINT_COLOR)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be
if (d.containsKey(TiC.PROPERTY_TINT_COLOR)) { | |
if (d.containsKey(TiC.PROPERTY_TRACK_TINT_COLOR)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha, yeah that was actually copy pasted from the TiUIProgressBar.java where it was probably also copy pasted from the tint color. I'll fix both together
2fa279f
to
8f879b0
Compare
@janvennemann Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@jquick-axway Can you please take a quick look at the Android changes too? I think they are fine, just so someone from the Android team approves this too. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Android changes look fine
Sorry about the late response. I see one parity issue. On Android, you can only set the properties upon creation. On iOS, it looks like the color can be changed dynamically. On Android, we would need to add |
@hansemannn, are you willing to make the change I suggested above? This is in regards to it being creation-only properties on Android versus iOS supports changing them dynamically. This is the only thing that's blocking this PR. I can get someone else to make the final changes to this PR if you don't have time. Thanks. |
Please assign it internally, thank you! |
Updated PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
FR: Pass
FR: Passed. Studio Ver: 5.1.4.201909061933 |
JIRA:
https://jira.appcelerator.org/browse/TIMOB-27272
Summary:
Added new properties "tintColor" and "trackTintColor" to
Ti.UI.Slider
.Test 1 - Set Colors Upon Creation:
Test 2 - Set Colors After Creation: