Merge pull request #2 from Necriso/patch-2

Update VodafoneDE.js
This commit is contained in:
Benny 2020-10-21 22:55:16 +02:00 committed by GitHub
commit 86384aa6aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,7 @@ const canvTextSize = 36;
const canvWidth = 22;
const canvRadius = 80;
canvas.opaque = false
canvas.size = new Size(canvSize, canvSize);
canvas.respectScreenScale = true;
@ -63,10 +64,6 @@ function drawArc(ctr, rad, w, deg) {
bgd = 2 * rad;
bgr = new Rect(bgx, bgy, bgd, bgd);
bgc = new Rect(0, 0, canvSize, canvSize);
canvas.setFillColor(new Color(backColor));
canvas.fill(bgc);
canvas.setFillColor(new Color(fillColor));
canvas.setStrokeColor(new Color(strokeColor));
canvas.setLineWidth(w);
@ -231,4 +228,4 @@ if(!config.runsInWidget) {
// Tell the system to show the widget.
Script.setWidget(widget)
Script.complete()
}
}