fixed block label shadow rendering

pull/95/head
jmoenig 2020-04-20 13:27:28 +02:00
rodzic 31c7cee9e7
commit fd374f21ad
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -4236,14 +4236,14 @@ BlockMorph.prototype.fixLabelColor = function () {
this.setLabelColor(
new Color(255, 255, 255),
clr.darker(this.labelContrast),
MorphicPreferences.isFlat ? null : new Point(-1, -1)
MorphicPreferences.isFlat ? null : this.embossing
);
} else {
this.setLabelColor(
new Color(0, 0, 0),
clr.lighter(this.zebraContrast)
.lighter(this.labelContrast * 2),
MorphicPreferences.isFlat ? null : new Point(1, 1)
MorphicPreferences.isFlat ? null : this.embossing.neg()
);
}
}