From ff75d764726a647fbae0506f2fa1b411c36a5d27 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 20 Jun 2013 14:32:23 +0200 Subject: "flat" design enhancements for cells --- objects.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index 21e8e8f..61bfaf2 100644 --- a/objects.js +++ b/objects.js @@ -5297,9 +5297,7 @@ CellMorph.prototype.drawNew = function () { context.shadowOffsetY = this.border; context.shadowBlur = this.border; context.shadowColor = this.color.darker(80).toString(); - if (!MorphicPreferences.isFlat) { - this.drawShadow(context, this.edge, this.border / 2); - } + this.drawShadow(context, this.edge, this.border / 2); } // position my contents @@ -5376,7 +5374,7 @@ CellMorph.prototype.layoutChanged = function () { ); context.closePath(); context.fill(); - if (this.border > 0) { + if (this.border > 0 && !MorphicPreferences.isFlat) { context.lineWidth = this.border; context.strokeStyle = this.borderColor.toString(); context.beginPath(); -- cgit v1.3.1