mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-05 21:17:40 +00:00
Update VodafoneDE.js
Verbesserungen
This commit is contained in:
parent
bb78020f8c
commit
9d9f826d62
1 changed files with 3 additions and 4 deletions
|
@ -429,14 +429,13 @@ function getDiagram(percentage, isFlat) {
|
|||
canvas.setTextAlignedCenter()
|
||||
canvas.setTextColor(textColor)
|
||||
canvas.setFont(Font.boldSystemFont(canvTextSize))
|
||||
const infinitySize = canvSize / 2;
|
||||
if (isFlat === true) {
|
||||
const infinitySize = canvSize / 2;
|
||||
canvas.setFont(Font.boldSystemFont(infinitySize));
|
||||
if (config.widgetFamily === "small" || "medium" || "large" || "extraLarge") {
|
||||
const textRect = new Rect(0, infinitySize / 3, canvSize, canvSize);
|
||||
canvas.drawTextInRect(`∞`, textRect);
|
||||
} else {
|
||||
const infinitySize = canvSize / 2;
|
||||
canvas.setFont(Font.boldSystemFont(infinitySize));
|
||||
const textRect = new Rect(0, infinitySize / 1, canvSize, canvSize);
|
||||
canvas.drawTextInRect(`∞`, textRect);
|
||||
|
@ -475,10 +474,10 @@ function getTotalValues(v) {
|
|||
totalValues = `Flat`
|
||||
} else {
|
||||
if (v.used <= 1024) {
|
||||
totalValues = `${v.used} MB verbraucht.`
|
||||
totalValues = `${v.used} MB verbraucht`
|
||||
} else {
|
||||
let usedGB = (v.used / 1024).toFixed(2)
|
||||
totalValues = `${usedGB} GB verbraucht.`
|
||||
totalValues = `${usedGB} GB verbraucht`
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue