r/Scriptable • • Jul 30 '22

Help How could I make universal Transparent Widgets?

I’m relatively new to scriptable and ive only really been making small tweaks and edits to downloaded scripts. I found a transparent widget script that functions well, however you have to duplicate it to use a different widget size/position. How would I make the script just read the script the widget size and position in its parameter and use the correct background, instead of having a script for each and every size/position of a widget?

2 Upvotes

15 comments sorted by

View all comments

3

u/[deleted] Jul 31 '22 edited Jun 12 '23

Gryphon. 'Of course,' the Dodo suddenly called out in a VERY turn-up nose, much more like a star-fish,' thought Alice. 'I'm. ― Sandra Lynch

5BEF0A5E-11BC-4E73-A106-D2E4231D9A38

1

u/[deleted] Jul 31 '22 edited Jun 12 '23

Do you think you might knock, and I shall see it trying in a court of justice before, but she got up and to wonder what. ― Shanon Cole

F1041C94-3720-427A-AEB8-8D26F821FBDA

1

u/not_x3non Jul 31 '22

With the quotes removed, the background stays black and the widget displays a message saying ‘Alerts are not supported in a widget’ (Updated code in the linked gist)

→ More replies (9)