aboutsummaryrefslogtreecommitdiff
path: root/js/tools/PenTool.js
diff options
context:
space:
mode:
authorJohn Mayhew2012-05-03 15:11:56 -0700
committerJohn Mayhew2012-05-03 15:11:56 -0700
commit1a759361b82127f9d5c1428dc889fffdf2daaf86 (patch)
tree92e62aa215418d864e5224797a974cb9841d4b90 /js/tools/PenTool.js
parent6b1a6994d98a18b45016b97ac8d81483109a586c (diff)
downloadninja-1a759361b82127f9d5c1428dc889fffdf2daaf86.tar.gz
First round of moving color chips into the sub tools. Shape and Pen tool now have chips in the sub tool bar. Still need to complete adding chips to the Brush tool and finalizing the subtool bar layout to our spec for all of the subtools.
Diffstat (limited to 'js/tools/PenTool.js')
-rwxr-xr-xjs/tools/PenTool.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 8ecc9f79..83d0c8d2 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -240,7 +240,7 @@ exports.PenTool = Montage.create(ShapeTool, {
240 this._selectedSubpath.setStrokeWidth(strokeSize); 240 this._selectedSubpath.setStrokeWidth(strokeSize);
241 241
242 var colorArray=[]; 242 var colorArray=[];
243 var color = this.application.ninja.colorController.colorToolbar.stroke.color; 243 var color = this.options.stroke.color;
244 if (color){ 244 if (color){
245 colorArray = [color.r/255, color.g/255, color.b/255, color.a]; 245 colorArray = [color.r/255, color.g/255, color.b/255, color.a];
246 }else { 246 }else {
@@ -248,7 +248,7 @@ exports.PenTool = Montage.create(ShapeTool, {
248 } 248 }
249 this._selectedSubpath.setStrokeColor(colorArray); 249 this._selectedSubpath.setStrokeColor(colorArray);
250 250
251 color = this.application.ninja.colorController.colorToolbar.fill.color; 251 color = this.options.fill.color;
252 if (color){ 252 if (color){
253 colorArray = [color.r/255, color.g/255, color.b/255, color.a]; 253 colorArray = [color.r/255, color.g/255, color.b/255, color.a];
254 } else { 254 } else {