kopia lustrzana https://github.com/backface/turtlestitch
fixed block label shadow rendering
rodzic
31c7cee9e7
commit
fd374f21ad
|
@ -4236,14 +4236,14 @@ BlockMorph.prototype.fixLabelColor = function () {
|
||||||
this.setLabelColor(
|
this.setLabelColor(
|
||||||
new Color(255, 255, 255),
|
new Color(255, 255, 255),
|
||||||
clr.darker(this.labelContrast),
|
clr.darker(this.labelContrast),
|
||||||
MorphicPreferences.isFlat ? null : new Point(-1, -1)
|
MorphicPreferences.isFlat ? null : this.embossing
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.setLabelColor(
|
this.setLabelColor(
|
||||||
new Color(0, 0, 0),
|
new Color(0, 0, 0),
|
||||||
clr.lighter(this.zebraContrast)
|
clr.lighter(this.zebraContrast)
|
||||||
.lighter(this.labelContrast * 2),
|
.lighter(this.labelContrast * 2),
|
||||||
MorphicPreferences.isFlat ? null : new Point(1, 1)
|
MorphicPreferences.isFlat ? null : this.embossing.neg()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue