mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Merge pull request #2993 from NativeScript/nnikolov/SegmentedBarSelectedBackgroundColorIos
SelectedBackgroundColor set via css ios.
This commit is contained in:
@ -200,24 +200,14 @@ export class SegmentedBarStyler implements style.Styler {
|
||||
if (!v.ios) {
|
||||
return;
|
||||
}
|
||||
|
||||
ensureColor();
|
||||
|
||||
if (newValue instanceof color.Color) {
|
||||
v.ios.tintColor = newValue.ios;
|
||||
}
|
||||
v.ios.tintColor = newValue;
|
||||
}
|
||||
|
||||
private static resetSelectedBackgroundColorProperty(v: view.View, nativeValue: any) {
|
||||
if (!v.ios) {
|
||||
return;
|
||||
}
|
||||
|
||||
ensureColor();
|
||||
|
||||
if (nativeValue instanceof color.Color) {
|
||||
v.ios.tintColor = nativeValue.ios;
|
||||
}
|
||||
v.ios.tintColor = nativeValue;
|
||||
}
|
||||
|
||||
private static getSelectedBackgroundColorProperty(v: view.View): any {
|
||||
|
Reference in New Issue
Block a user