Skip to content

Commit 1b2b8d8

Browse files
committed
adding a default to white check
1 parent a4f562b commit 1b2b8d8

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

demo/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"nativescript": {
3-
"id": "org.nativescript.demo",
4-
"tns-android": {
5-
"version": "2.0.0"
6-
},
7-
"tns-ios": {
8-
"version": "2.0.0"
9-
}
10-
},
11-
"dependencies": {
12-
"nativescript-slides": "file:..",
13-
"tns-core-modules": "^2.0.1"
14-
},
15-
"devDependencies": {
16-
"babel-traverse": "6.9.0",
17-
"babel-types": "6.9.1",
18-
"babylon": "6.8.0",
19-
"filewalker": "0.1.2",
20-
"lazy": "1.0.11",
21-
"nativescript-dev-typescript": "^0.3.1",
22-
"typescript": "^1.8.7"
23-
}
24-
}
2+
"nativescript": {
3+
"id": "org.nativescript.demo",
4+
"tns-android": {
5+
"version": "2.0.0"
6+
},
7+
"tns-ios": {
8+
"version": "2.0.0"
9+
}
10+
},
11+
"dependencies": {
12+
"nativescript-slides": "file:..",
13+
"tns-core-modules": "^2.0.1"
14+
},
15+
"devDependencies": {
16+
"babel-traverse": "6.9.0",
17+
"babel-types": "6.9.1",
18+
"babylon": "6.8.0",
19+
"filewalker": "0.1.2",
20+
"lazy": "1.0.11",
21+
"nativescript-dev-typescript": "^0.3.1",
22+
"typescript": "^1.8.7"
23+
}
24+
}

nativescript-slides.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ export class SlideContainer extends AbsoluteLayout {
180180
if (this._pageIndicators == null) {
181181
this._pageIndicators = false;
182182
}
183+
if (this.indicatorsColor == null) {
184+
this.indicatorsColor = "#fff"; //defaults to white.
185+
}
183186
}
184187

185188
public constructView(constructor: boolean = false): void {
@@ -225,7 +228,7 @@ export class SlideContainer extends AbsoluteLayout {
225228
if (!Color.isValid(iColor)) {
226229
iColor = '#fff';
227230
}
228-
231+
229232
this._footer = this.buildFooter(slides.length, 0, iColor);
230233
this.insertChild(this._footer, this.getChildrenCount());
231234
// this.setActivePageIndicator(0);

0 commit comments

Comments
 (0)