From 29df692bbe42150c2cb6a58587b9e9ae2d791389 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Tue, 3 Apr 2012 13:44:37 -0700 Subject: IKNinja-635 - Can't see 3d handles if div is red, green or blue color. Signed-off-by: Nivesh Rajbhandari --- js/stage/tool-handle.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js index f16d8324..d353da47 100755 --- a/js/stage/tool-handle.js +++ b/js/stage/tool-handle.js @@ -235,6 +235,8 @@ exports.RotateHandle = Montage.create(ToolHandle, { context.strokeStyle = this._strokeStyle; context.fillStyle = this._fillStyle; context.lineWidth = this._lineWidth; + context.shadowBlur = 2; + context.shadowColor = "rgba(0, 0, 0, 0.8)"; var pointOnElt = base.slice(0); // this._origin = viewUtils.localToGlobal(pointOnElt, item); @@ -400,7 +402,8 @@ exports.RotateHandle = Montage.create(ToolHandle, { var context = this.application.ninja.stage.drawingContext; context.save(); - context.strokeStyle = this._strokeStyle; + context.strokeStyle = "rgba(0,0,0,1)"; + context.lineWidth = 2; context.fillStyle = this._fillStyle; context.globalAlpha = 0.2; @@ -574,6 +577,8 @@ exports.TranslateHandle = Montage.create(ToolHandle, { context.strokeStyle = this._strokeStyle; context.fillStyle = this._fillStyle; context.lineWidth = this._lineWidth; + context.shadowBlur = 2; + context.shadowColor = "rgba(0, 0, 0, 0.8)"; var pointOnElt = base.slice(0); // this._origin = viewUtils.localToGlobal(pointOnElt, item); -- cgit v1.2.3