aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/shape-properties.reel/shape-properties.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-23 19:20:11 -0700
committerJose Antonio Marquez2012-06-23 19:20:11 -0700
commit1005ff940d65a6717653d28b81d10564e4434dea (patch)
tree7da6c17a3a7485ed016a818da21acd8992c5628f /js/components/tools-properties/shape-properties.reel/shape-properties.js
parenta177f4d3a534795f4229128be4316e37d51555d9 (diff)
downloadninja-1005ff940d65a6717653d28b81d10564e4434dea.tar.gz
Adding gradient mode to tools
Tools need to implement using gradients on pre-flight mode, so right now this will only set/get color but will now apply on draw until tools are made to apply color. This should be filed as individual issues per tool.
Diffstat (limited to 'js/components/tools-properties/shape-properties.reel/shape-properties.js')
-rwxr-xr-xjs/components/tools-properties/shape-properties.reel/shape-properties.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/components/tools-properties/shape-properties.reel/shape-properties.js b/js/components/tools-properties/shape-properties.reel/shape-properties.js
index 7306275a..e6b71f95 100755
--- a/js/components/tools-properties/shape-properties.reel/shape-properties.js
+++ b/js/components/tools-properties/shape-properties.reel/shape-properties.js
@@ -125,11 +125,11 @@ var ShapeProperties = exports.ShapeProperties = Montage.create(ToolProperties, {
125 125
126 if (this.addedColorChips === false && this.application.ninja.colorController.colorPanelDrawn) { 126 if (this.addedColorChips === false && this.application.ninja.colorController.colorPanelDrawn) {
127 // setup fill color 127 // setup fill color
128 this._fillColorCtrl.props = { side: 'top', align: 'center', wheel: true, palette: true, gradient: false, image: false, nocolor: true, offset: -80 }; 128 this._fillColorCtrl.props = { side: 'top', align: 'center', wheel: true, palette: true, gradient: true, image: false, nocolor: true, offset: -80 };
129 this.application.ninja.colorController.addButton("chip", this._fillColorCtrl); 129 this.application.ninja.colorController.addButton("chip", this._fillColorCtrl);
130 130
131 // setup stroke color 131 // setup stroke color
132 this._strokeColorCtrl.props = { side: 'top', align: 'center', wheel: true, palette: true, gradient: false, image: false, nocolor: true, offset: -80 }; 132 this._strokeColorCtrl.props = { side: 'top', align: 'center', wheel: true, palette: true, gradient: true, image: false, nocolor: true, offset: -80 };
133 this.application.ninja.colorController.addButton("chip", this._strokeColorCtrl); 133 this.application.ninja.colorController.addButton("chip", this._strokeColorCtrl);
134 134
135 this._fillColorCtrl.addEventListener("change", this.handleFillColorChange.bind(this), false); 135 this._fillColorCtrl.addEventListener("change", this.handleFillColorChange.bind(this), false);