@nativescript-community/ui-material-slider
Advanced tools
Comparing version 7.2.11 to 7.2.12
{ | ||
"name": "@nativescript-community/ui-material-slider", | ||
"version": "7.2.11", | ||
"version": "7.2.12", | ||
"description": "Material Design Sliders allow users to make selections from a range of values.", | ||
@@ -49,5 +49,5 @@ "main": "./slider", | ||
"dependencies": { | ||
"@nativescript-community/ui-material-core": "^7.2.11" | ||
"@nativescript-community/ui-material-core": "^7.2.12" | ||
}, | ||
"gitHead": "2d8613c50d7388aa86eb9e7ff1613d322b3a432d" | ||
"gitHead": "6a5bdc8e9ce9e545feebf93fb624ed7055feaebc" | ||
} |
@@ -1,5 +0,6 @@ | ||
import { cssProperty, rippleColorProperty, themer } from '@nativescript-community/ui-material-core'; | ||
import { cssProperty, rippleColorAlphaProperty, rippleColorProperty, themer } from '@nativescript-community/ui-material-core'; | ||
import { getColorStateList, getEnabledColorStateList, state } from '@nativescript-community/ui-material-core/android/utils'; | ||
import { CoercibleProperty, Color, Property, View, backgroundColorProperty, backgroundInternalProperty, colorProperty } from '@nativescript/core'; | ||
import { stepSizeProperty, thumbColorProperty, trackBackgroundColorProperty, trackFillColorProperty } from './cssproperties'; | ||
import { getRippleColor } from '@nativescript-community/ui-material-core/index.android'; | ||
let ASlider; | ||
@@ -177,4 +178,9 @@ const DEFAULT_MIN = 0; | ||
[rippleColorProperty.setNative](color) { | ||
this.nativeViewProtected.setHaloTintList(color ? getColorStateList(color.android) : null); | ||
this.nativeViewProtected.setHaloTintList(color ? getColorStateList(getRippleColor(color, this.rippleColorAlpha)) : null); | ||
} | ||
[rippleColorAlphaProperty.setNative](value) { | ||
if (this.rippleColor) { | ||
this[rippleColorProperty.setNative](this.rippleColor); | ||
} | ||
} | ||
[thumbColorProperty.setNative](color) { | ||
@@ -181,0 +187,0 @@ this.nativeViewProtected.setThumbTintList(sliderGetEnabledColorStateList(color)); |
@@ -1,2 +0,2 @@ | ||
import { elevationProperty, rippleColorProperty, themer } from '@nativescript-community/ui-material-core'; | ||
import { elevationProperty, getRippleColor, rippleColorAlphaProperty, rippleColorProperty, themer } from '@nativescript-community/ui-material-core'; | ||
import { Color, backgroundColorProperty, colorProperty } from '@nativescript/core'; | ||
@@ -37,4 +37,9 @@ import { maxValueProperty } from '@nativescript/core/ui/progress'; | ||
[rippleColorProperty.setNative](color) { | ||
this.nativeViewProtected.rippleColor = color ? color.ios.colorWithAlphaComponent(0.26) : null; | ||
this.nativeViewProtected.rippleColor = color ? getRippleColor(color, this.rippleColorAlpha) : null; | ||
} | ||
[rippleColorAlphaProperty.setNative](value) { | ||
if (this.rippleColor) { | ||
this[rippleColorProperty.setNative](this.rippleColor); | ||
} | ||
} | ||
[thumbColorProperty.setNative](color) { | ||
@@ -41,0 +46,0 @@ this.nativeViewProtected.setThumbColorForState(color ? color.ios : null, 0 /* UIControlState.Normal */); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54795
536