File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ export const spinBarColorProperty = new InheritedCssProperty<Style, Color>({
6
6
equalityComparer : Color . equals ,
7
7
valueConverter : ( value ) => new Color ( value ) ,
8
8
} ) ;
9
+
9
10
export const rimColorProperty = new InheritedCssProperty < Style , Color > ( {
10
11
name : 'rimColor' ,
11
12
cssName : 'rim-color' ,
12
13
equalityComparer : Color . equals ,
13
14
valueConverter : ( value ) => new Color ( value ) ,
14
15
} ) ;
16
+
15
17
export const barColorProperty = new InheritedCssProperty < Style , Color > ( {
16
18
name : 'barColor' ,
17
19
cssName : 'bar-color' ,
@@ -25,18 +27,18 @@ export class AnimatedCircleCommon extends ContentView {
25
27
}
26
28
}
27
29
28
- // register after class definition or we'll get an exception according
29
- // to
30
+ // register after class definition or we'll get an exception according to
30
31
// https://docs.nativescript.org/core-concepts/properties#registering-the-property
31
32
32
- // augmenting style definitino so it includes rimColor and barColor
33
+ // augmenting style definition so it includes rimColor and barColor
33
34
declare module '@nativescript/core/ui/styling/style' {
34
35
interface Style {
35
- spinBarColor : Color ;
36
- rimColor : Color ;
37
- barColor : Color ;
36
+ spinBarColor : Color | string ;
37
+ rimColor : Color | string ;
38
+ barColor : Color | string ;
38
39
}
39
40
}
41
+
40
42
// defines 'spinBarColor' property on Style class
41
43
spinBarColorProperty . register ( Style ) ;
42
44
// defines 'rimColor' property on Style class
You can’t perform that action at this time.
0 commit comments