summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-06-20 14:32:23 +0200
committerjmoenig <jens@moenig.org>2013-06-20 14:32:23 +0200
commitff75d764726a647fbae0506f2fa1b411c36a5d27 (patch)
tree5bf76178006e7ec10bd695c9812bfb6d17e3854d /objects.js
parent7af5ab575deb0e2c97651aa3dc2181d487f69dc1 (diff)
downloadsnap-ff75d764726a647fbae0506f2fa1b411c36a5d27.tar.gz
snap-ff75d764726a647fbae0506f2fa1b411c36a5d27.zip
"flat" design enhancements for cells
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js6
1 files changed, 2 insertions, 4 deletions
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();