mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-07 05:57:41 +00:00
parent
7e0fc367c4
commit
2659c15a55
1 changed files with 2 additions and 2 deletions
|
@ -430,9 +430,9 @@ function getDiagram(percentage, isFlat, widgetType) {
|
||||||
canvas.setTextColor(textColor)
|
canvas.setTextColor(textColor)
|
||||||
canvas.setFont(Font.boldSystemFont(108))
|
canvas.setFont(Font.boldSystemFont(108))
|
||||||
if (isFlat === true) {
|
if (isFlat === true) {
|
||||||
const infinitySize = canvSize / 2;
|
|
||||||
canvas.setFont(Font.boldSystemFont(infinitySize));
|
|
||||||
if (widgetType === "small" || "medium" || "large" || "extraLarge") {
|
if (widgetType === "small" || "medium" || "large" || "extraLarge") {
|
||||||
|
const infinitySize = canvSize / 2;
|
||||||
|
canvas.setFont(Font.boldSystemFont(infinitySize));
|
||||||
const textRect = new Rect(0, infinitySize / 3, canvSize, canvSize);
|
const textRect = new Rect(0, infinitySize / 3, canvSize, canvSize);
|
||||||
canvas.drawTextInRect(`∞`, textRect);
|
canvas.drawTextInRect(`∞`, textRect);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue