aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Style.reel
diff options
context:
space:
mode:
authorKruti Shah2012-06-08 11:27:40 -0700
committerKruti Shah2012-06-08 11:27:40 -0700
commitc1cd060be878d30fda71140dc850b8d1ac68c6ad (patch)
treedf9d9a74cc5de5393a3d8c946217b6f119896357 /js/panels/Timeline/Style.reel
parent8986b9f78174b10790ad00e5a28122cb0879e5e3 (diff)
downloadninja-c1cd060be878d30fda71140dc850b8d1ac68c6ad.tar.gz
Color chip in TP
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Style.reel')
-rw-r--r--js/panels/Timeline/Style.reel/Style.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/js/panels/Timeline/Style.reel/Style.js b/js/panels/Timeline/Style.reel/Style.js
index ed7a281a..a0dc7c6b 100644
--- a/js/panels/Timeline/Style.reel/Style.js
+++ b/js/panels/Timeline/Style.reel/Style.js
@@ -376,14 +376,10 @@ var LayerStyle = exports.LayerStyle = Montage.create(Component, {
376 this._fillColorCtrl.props = { side: 'top', align: 'center', wheel: true, palette: true, gradient: false, image: false, nocolor: true, offset: -80 }; 376 this._fillColorCtrl.props = { side: 'top', align: 'center', wheel: true, palette: true, gradient: false, image: false, nocolor: true, offset: -80 };
377 this.application.ninja.colorController.addButton("chip", this._fillColorCtrl); 377 this.application.ninja.colorController.addButton("chip", this._fillColorCtrl);
378 this.abcelement = this._fillColorCtrl; 378 this.abcelement = this._fillColorCtrl;
379 var currentValue = ElementsMediator.getColor(this.parentComponent.parentComponent.parentComponent.parentComponent.layerData.stageElement,true) 379 var currentValue = ElementsMediator.getColor(this.parentComponent.parentComponent.parentComponent.parentComponent.layerData.stageElement,this._isFill,this._borderSide)
380 this._fillColorCtrl.addEventListener("change", this.handleFillColorChange.bind(this), false); 380 this._fillColorCtrl.addEventListener("change", this.handleFillColorChange.bind(this), false);
381 this.addedColorChips = true;
382 }
383
384 if (this.addedColorChips) {
385 this._fillColorCtrl.color(currentValue.colorMode, currentValue.color); 381 this._fillColorCtrl.color(currentValue.colorMode, currentValue.color);
386 // this._strokeColorCtrl.color(this._stroke.colorMode, this._stroke.color); 382 this.addedColorChips = true;
387 } 383 }
388 384
389 // TODO: set up color chip here. 385 // TODO: set up color chip here.