diff options
| author | jmoenig <jens@moenig.org> | 2013-06-20 14:32:23 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-06-20 14:32:23 +0200 |
| commit | ff75d764726a647fbae0506f2fa1b411c36a5d27 (patch) | |
| tree | 5bf76178006e7ec10bd695c9812bfb6d17e3854d /objects.js | |
| parent | 7af5ab575deb0e2c97651aa3dc2181d487f69dc1 (diff) | |
| download | snap-byow-ff75d764726a647fbae0506f2fa1b411c36a5d27.tar.gz snap-byow-ff75d764726a647fbae0506f2fa1b411c36a5d27.zip | |
"flat" design enhancements for cells
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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(); |
