mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-05 21:17:40 +00:00
Update VodafoneDE.js
Improvements
This commit is contained in:
parent
172ec57727
commit
3a2e4b610e
1 changed files with 2 additions and 2 deletions
|
@ -430,9 +430,9 @@ function getDiagram(percentage, isFlat, widgetType) {
|
|||
canvas.setTextColor(textColor)
|
||||
canvas.setFont(Font.boldSystemFont(108))
|
||||
if (isFlat === true) {
|
||||
const infinitySize = canvSize / 2;
|
||||
canvas.setFont(Font.boldSystemFont(infinitySize));
|
||||
if (widgetType === "small" || "medium" || "large" || "extraLarge") {
|
||||
const infinitySize = canvSize / 2;
|
||||
canvas.setFont(Font.boldSystemFont(infinitySize));
|
||||
const textRect = new Rect(0, infinitySize / 3, canvSize, canvSize);
|
||||
canvas.drawTextInRect(`∞`, textRect);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue