aboutsummaryrefslogtreecommitdiff
path: root/js/panels/color/colorpanelbase.reel
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-23 19:22:53 -0700
committerJose Antonio Marquez2012-06-23 19:22:53 -0700
commit32c41a56fd870f28be70c9b9cfb4fe6dfbb16654 (patch)
tree9cb08c329b5fec6ae241fa2974ac4713fa428e3c /js/panels/color/colorpanelbase.reel
parent1005ff940d65a6717653d28b81d10564e4434dea (diff)
downloadninja-32c41a56fd870f28be70c9b9cfb4fe6dfbb16654.tar.gz
Adding support for gradients on chips
Need to handle other color modes, currently only handling HSV and gradients. Working on getting other modes supported. Also, will need clean up color popup manager after completion.
Diffstat (limited to 'js/panels/color/colorpanelbase.reel')
-rwxr-xr-xjs/panels/color/colorpanelbase.reel/colorpanelbase.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/panels/color/colorpanelbase.reel/colorpanelbase.js b/js/panels/color/colorpanelbase.reel/colorpanelbase.js
index 26d4932f..bf2ada96 100755
--- a/js/panels/color/colorpanelbase.reel/colorpanelbase.js
+++ b/js/panels/color/colorpanelbase.reel/colorpanelbase.js
@@ -480,7 +480,11 @@ exports.ColorPanelBase = Montage.create(Component, {
480 } 480 }
481 if (c && c.css) { 481 if (c && c.css) {
482 this.ctx.clearRect(0, 0, this.cvs.width, this.cvs.height); 482 this.ctx.clearRect(0, 0, this.cvs.width, this.cvs.height);
483 this.style.backgroundColor = c.css; 483 if (m === 'gradient') {
484 this.style.backgroundImage = c.css;
485 } else {
486 this.style.backgroundColor = c.css;
487 }
484 } else { 488 } else {
485 this.drawNoColor(this, this.cvs); 489 this.drawNoColor(this, this.cvs);
486 } 490 }