mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-07 05:57:41 +00:00
Using
This commit is contained in:
parent
ccadb48cdd
commit
3e0f5fe544
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ if (widgetInputRAW !== null) {
|
||||||
}
|
}
|
||||||
dateForCountdown = widgetInput[0].trim()
|
dateForCountdown = widgetInput[0].trim()
|
||||||
icon = widgetInput[1] || '⏳';
|
icon = widgetInput[1] || '⏳';
|
||||||
|
text = widgetInput[3]; // new
|
||||||
if (widgetInput[2] && widgetInput[2].toLowerCase() === 'true') {
|
if (widgetInput[2] && widgetInput[2].toLowerCase() === 'true') {
|
||||||
showDate = true
|
showDate = true
|
||||||
}
|
}
|
||||||
|
@ -69,7 +70,7 @@ gradient.colors = [
|
||||||
widget.backgroundGradient = gradient
|
widget.backgroundGradient = gradient
|
||||||
|
|
||||||
|
|
||||||
let provider = widget.addText(icon + " Countdown")
|
let provider = widget.addText(icon + " " + text) // variant
|
||||||
provider.font = Font.mediumSystemFont(12)
|
provider.font = Font.mediumSystemFont(12)
|
||||||
provider.textColor = textColor
|
provider.textColor = textColor
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue