diff options
| author | jmoenig <jens@moenig.org> | 2013-06-20 18:29:16 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-06-20 18:29:16 +0200 |
| commit | bed3e03e65efdf1713036733ecbb011fae263b90 (patch) | |
| tree | aedade0d3fcddc0c09a78dea67a98bf739340f4d | |
| parent | d3ff1965fca3d3d4e4f3b02a260e752461a5f024 (diff) | |
| download | snap-bed3e03e65efdf1713036733ecbb011fae263b90.tar.gz snap-bed3e03e65efdf1713036733ecbb011fae263b90.zip | |
"flat" design: No rounded corners for watchers
| -rw-r--r-- | objects.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -5854,14 +5854,10 @@ WatcherMorph.prototype.drawNew = function () { gradient; this.image = newCanvas(this.extent()); context = this.image.getContext('2d'); - if ((this.edge === 0) && (this.border === 0)) { + if (MorphicPreferences.isFlat || (this.edge === 0 && this.border === 0)) { BoxMorph.uber.drawNew.call(this); return; } - if (MorphicPreferences.isFlat) { - WatcherMorph.uber.drawNew.call(this); - return; - } gradient = context.createLinearGradient(0, 0, 0, this.height()); gradient.addColorStop(0, this.color.lighter().toString()); gradient.addColorStop(1, this.color.darker().toString()); |
