mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-05 21:17:40 +00:00
fix issue with dev.to widget
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
0feb941555
commit
7c479369d2
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue