aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
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/controllers/elements
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/controllers/elements')
-rwxr-xr-xjs/controllers/elements/body-controller.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/controllers/elements/body-controller.js b/js/controllers/elements/body-controller.js
index 0ca6c417..0b6a5bad 100755
--- a/js/controllers/elements/body-controller.js
+++ b/js/controllers/elements/body-controller.js
@@ -31,6 +31,8 @@ exports.BodyController = Montage.create(ElementController, {
31 value: function(el, p) { 31 value: function(el, p) {
32 switch(p) { 32 switch(p) {
33 case "background" : 33 case "background" :
34 case "background-image":
35 return this.application.ninja.colorController.getColorObjFromCss(this.application.ninja.stylesController.getElementStyle(el, "background-image"));
34 case "background-color": 36 case "background-color":
35 return this.application.ninja.colorController.getColorObjFromCss(this.application.ninja.stylesController.getElementStyle(el, "background-color")); 37 return this.application.ninja.colorController.getColorObjFromCss(this.application.ninja.stylesController.getElementStyle(el, "background-color"));
36 case "border": 38 case "border":
@@ -50,6 +52,9 @@ exports.BodyController = Montage.create(ElementController, {
50 value: function(el, p, value) { 52 value: function(el, p, value) {
51 switch(p) { 53 switch(p) {
52 case "background": 54 case "background":
55 case "background-image":
56 this.application.ninja.stylesController.setElementStyle(el, "background-image", value);
57 break;
53 case "background-color": 58 case "background-color":
54 this.application.ninja.stylesController.setElementStyle(el, "background-color", value); 59 this.application.ninja.stylesController.setElementStyle(el, "background-color", value);
55 break; 60 break;