mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 23:37:41 +00:00
fix scaling issue
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
7e1b84d588
commit
c963904a72
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
// Variables used by Scriptable.
|
// Variables used by Scriptable.
|
||||||
// These must be at the very top of the file. Do not edit.
|
// These must be at the very top of the file. Do not edit.
|
||||||
// icon-color: blue; icon-glyph: microscope;
|
// icon-color: blue; icon-glyph: microscope;
|
||||||
// Version 1.0.0
|
// Version 1.0.1
|
||||||
|
|
||||||
/**************
|
/**************
|
||||||
Credits:
|
Credits:
|
||||||
|
@ -119,6 +119,7 @@ widget.addSpacer()
|
||||||
|
|
||||||
let covidText = widget.addText(`${(data.growing ? "⬈" : "⬊")} ${+data.index}`)
|
let covidText = widget.addText(`${(data.growing ? "⬈" : "⬊")} ${+data.index}`)
|
||||||
covidText.font = Font.regularSystemFont(50)
|
covidText.font = Font.regularSystemFont(50)
|
||||||
|
covidText.minimumScaleFactor = 0.5
|
||||||
covidText.textColor = data.index < 50 ? new Color(textColor) : (new Color(textWarningColor));
|
covidText.textColor = data.index < 50 ? new Color(textColor) : (new Color(textWarningColor));
|
||||||
covidText.centerAlignText()
|
covidText.centerAlignText()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue