fix scaling issue

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2020-10-24 12:43:37 +02:00
parent 7e1b84d588
commit c963904a72
No known key found for this signature in database
GPG key ID: 69DE3C3C097DB7F7

View file

@ -1,7 +1,7 @@
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: microscope;
// Version 1.0.0
// Version 1.0.1
/**************
Credits:
@ -119,6 +119,7 @@ widget.addSpacer()
let covidText = widget.addText(`${(data.growing ? "⬈" : "⬊")} ${+data.index}`)
covidText.font = Font.regularSystemFont(50)
covidText.minimumScaleFactor = 0.5
covidText.textColor = data.index < 50 ? new Color(textColor) : (new Color(textWarningColor));
covidText.centerAlignText()