mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-05 21:17:40 +00:00
commit
86384aa6aa
1 changed files with 2 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue