kopia lustrzana https://github.com/backface/turtlestitch
"flat" design: No rounded corners for watchers
rodzic
d3ff1965fc
commit
bed3e03e65
|
@ -5854,14 +5854,10 @@ WatcherMorph.prototype.drawNew = function () {
|
||||||
gradient;
|
gradient;
|
||||||
this.image = newCanvas(this.extent());
|
this.image = newCanvas(this.extent());
|
||||||
context = this.image.getContext('2d');
|
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);
|
BoxMorph.uber.drawNew.call(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MorphicPreferences.isFlat) {
|
|
||||||
WatcherMorph.uber.drawNew.call(this);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
gradient = context.createLinearGradient(0, 0, 0, this.height());
|
gradient = context.createLinearGradient(0, 0, 0, this.height());
|
||||||
gradient.addColorStop(0, this.color.lighter().toString());
|
gradient.addColorStop(0, this.color.lighter().toString());
|
||||||
gradient.addColorStop(1, this.color.darker().toString());
|
gradient.addColorStop(1, this.color.darker().toString());
|
||||||
|
|
Ładowanie…
Reference in New Issue