mirror of
https://github.com/UiO-Gaming/infoscreen3.git
synced 2026-11-07 14:54:29 +01:00
disable text shadow on when stroke color is defined
This commit is contained in:
1 parent
799ede7b76
commit
59c8654f54
1 file changed
+6
-1
+6
-1
@@ -344,15 +344,20 @@ function nextSlide(data) {
|
||||
|
||||
if (object.id === "header") {
|
||||
object.setOptions(bundleData.styleHeader);
|
||||
if (bundleData.styleHeader.fill !== "") {
|
||||
object.setShadow({color: "rgba(0,0,0,0.6)", blur: 5, offsetX: 2, offsetY: 2});
|
||||
}
|
||||
} else {
|
||||
object.setOptions(bundleData.styleText);
|
||||
if (bundleData.styleText.fill !== "") {
|
||||
object.setShadow({color: "rgba(0,0,0,0.6)", blur: 5, offsetX: 2, offsetY: 2});
|
||||
}
|
||||
}
|
||||
|
||||
if (fill != null) {
|
||||
object.setOptions({fill: fill});
|
||||
}
|
||||
|
||||
object.setShadow({color: "rgba(0,0,0,0.6)", blur: 5, offsetX: 2, offsetY: 2});
|
||||
|
||||
object.lockRotation = true;
|
||||
object.hasControls = false;
|
||||
|
||||
Reference in new issue
Block a user