-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding week count and label via parameter #77
base: main
Are you sure you want to change the base?
Conversation
de: ['Tag', 'Tage'], | ||
default: ['Day', 'Days', 'weeks'], | ||
en: ['Day', 'Days', 'Weeks'], | ||
de: ['Tag', 'Tage', 'Wochen'], | ||
fr: ['Jour', 'Jours'], | ||
es: ['día', 'días'], | ||
it: ['giorno', 'giorni'] |
There was a problem hiding this comment.
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.
@@ -17,6 +17,7 @@ if (widgetInputRAW !== null) { | |||
} | |||
dateForCountdown = widgetInput[0].trim() | |||
icon = widgetInput[1] || '⏳'; | |||
text = widgetInput[3]; // new |
There was a problem hiding this comment.
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
let provider2 = widget.addText(remainingWeeks+ " " + (t[2])) | ||
provider2.font = Font.mediumSystemFont(16) | ||
provider2.textColor = textColor | ||
provider2.centerAlignText() | ||
textStack.addSpacer() |
There was a problem hiding this comment.
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
No description provided.