mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 15:27:40 +00:00
Always use gray textColor because dynamic colors are not supported when used with DrawContext
Percent-Values were invisible in the videt and only visible in the scriptable.app.
This commit is contained in:
parent
da9005bb5a
commit
cfbcbe677d
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ function getDiagram(percentage) {
|
||||||
canvTextSize
|
canvTextSize
|
||||||
)
|
)
|
||||||
canvas.setTextAlignedCenter()
|
canvas.setTextAlignedCenter()
|
||||||
canvas.setTextColor(Color.dynamic(Color.black(), Color.white()))
|
canvas.setTextColor(Color.gray())
|
||||||
canvas.setFont(Font.boldSystemFont(canvTextSize))
|
canvas.setFont(Font.boldSystemFont(canvTextSize))
|
||||||
canvas.drawTextInRect(`${percentage}%`, canvTextRect)
|
canvas.drawTextInRect(`${percentage}%`, canvTextRect)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue