fix issue with dev.to widget

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2020-12-30 01:06:14 +01:00
parent 0feb941555
commit 7c479369d2
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: green; icon-glyph: newspaper;
// Version 1.0.0
// Version 1.0.1
////////////////////////////////////////////////////////////////////////////////
////////////////////////// User-Config /////////////////////////
@ -141,11 +141,15 @@ if (config.widgetFamily !== 'small') {
widget.backgroundImage = (await imageReq.loadImage())
const stack = widget.addStack()
stack.layoutHorizontally()
stack.addSpacer()
stack.setPadding(10, 10, 10, 10)
stack.backgroundColor = Color.dynamic(new Color('EDEDED', 0.7), new Color('111111', 0.7))
const text = stack.addText(article.title)
text.font = Font.boldSystemFont(12)
stack.addSpacer()
widget.url = `https://dev.to${article.path}`
widget.addSpacer(0)
}