Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Adding week count and label via parameter #77

Open
ParoTheParrot wants to merge 3 commits intoThisIsBenny:mainfrom
ParoTheParrot:main
Open

Adding week count and label via parameter #77
ParoTheParrot wants to merge 3 commits intoThisIsBenny:mainfrom
ParoTheParrot:main

Conversation

@ParoTheParrot
Copy link

No description provided.

de: ['Tag', 'Tage', 'Wochen'],
fr: ['Jour', 'Jours'],
es: ['día', 'días'],
it: ['giorno', 'giorni']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add "Weeks" also to fr, es, and it.

}
dateForCountdown = widgetInput[0].trim()
icon = widgetInput[1] || '⏳';
text = widgetInput[3]; // new
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this "optional" to avoid breaking changes: Use "Countdown" as fallback value in case there is no text defined

Comment on lines +103 to +107
let provider2 = widget.addText(remainingWeeks+ " " + (t[2]))
provider2.font = Font.mediumSystemFont(16)
provider2.textColor = textColor
provider2.centerAlignText()
textStack.addSpacer()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • please use a separated horizontal stack with a spacer at beginning and end, and not the one from the remaining days (textStack).
  • Please make this part configurable, because maybe not everyone would like to see also the remaining weeks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants