aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authormayhewinator2012-05-15 15:55:42 -0700
committermayhewinator2012-05-15 15:55:42 -0700
commit64d32b512c94fb470654897bfa799b248122431b (patch)
treed0e5b4af9f6ca1d8bf4de7d728619083a1b2e77d /js/tools
parent6bced2460423b144c6327e7a21d27bd8f279cbd3 (diff)
parentdcbdd4d4be9a02e792bce445ab360b72d66fa326 (diff)
downloadninja-64d32b512c94fb470654897bfa799b248122431b.tar.gz
Merge pull request #1 from mencio/WorkingBranch
Working branch - Adding the color pre-flight for the Tag tool
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/TagTool.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js
index 5e9c792b..5520fa89 100755
--- a/js/tools/TagTool.js
+++ b/js/tools/TagTool.js
@@ -92,6 +92,11 @@ exports.TagTool = Montage.create(DrawingTool, {
92 // Create the styles 92 // Create the styles
93 styles = document.application.njUtils.stylesFromDraw(element, ~~drawData.width, ~~drawData.height, drawData); 93 styles = document.application.njUtils.stylesFromDraw(element, ~~drawData.width, ~~drawData.height, drawData);
94 94
95 // Add color
96 if(this.options.getProperty("fill.colorMode") !== "nocolor") {
97 styles['background-color'] = this.options.getProperty("fill.color.css");
98 }
99
95 // Add the element and styles 100 // Add the element and styles
96 this.application.ninja.elementMediator.addElements(element, styles); 101 this.application.ninja.elementMediator.addElements(element, styles);
97 } 102 }