mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +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) {
|
if (!v.ios) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
v.ios.tintColor = newValue;
|
||||||
ensureColor();
|
|
||||||
|
|
||||||
if (newValue instanceof color.Color) {
|
|
||||||
v.ios.tintColor = newValue.ios;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static resetSelectedBackgroundColorProperty(v: view.View, nativeValue: any) {
|
private static resetSelectedBackgroundColorProperty(v: view.View, nativeValue: any) {
|
||||||
if (!v.ios) {
|
if (!v.ios) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
v.ios.tintColor = nativeValue;
|
||||||
ensureColor();
|
|
||||||
|
|
||||||
if (nativeValue instanceof color.Color) {
|
|
||||||
v.ios.tintColor = nativeValue.ios;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static getSelectedBackgroundColorProperty(v: view.View): any {
|
private static getSelectedBackgroundColorProperty(v: view.View): any {
|
||||||
|
Reference in New Issue
Block a user