kopia lustrzana https://github.com/backface/turtlestitch
enabled blurred drop shadows in flat design mode
rodzic
9229e0b2a0
commit
3dd04cc6b0
|
@ -3589,7 +3589,7 @@ Morph.prototype.shadow = function (off, a, color) {
|
||||||
alpha = a || ((a === 0) ? 0 : 0.2),
|
alpha = a || ((a === 0) ? 0 : 0.2),
|
||||||
fb = this.fullBounds();
|
fb = this.fullBounds();
|
||||||
shadow.setExtent(fb.extent().add(this.shadowBlur * 2));
|
shadow.setExtent(fb.extent().add(this.shadowBlur * 2));
|
||||||
if (useBlurredShadows && !MorphicPreferences.isFlat) {
|
if (useBlurredShadows /*&& !MorphicPreferences.isFlat*/) {
|
||||||
shadow.cachedImage = this.shadowImageBlurred(offset, color);
|
shadow.cachedImage = this.shadowImageBlurred(offset, color);
|
||||||
shadow.alpha = alpha;
|
shadow.alpha = alpha;
|
||||||
shadow.setPosition(fb.origin.add(offset).subtract(this.shadowBlur));
|
shadow.setPosition(fb.origin.add(offset).subtract(this.shadowBlur));
|
||||||
|
|
Ładowanie…
Reference in New Issue