Commit Graph

18 Commits (5bb2dc87a8e2d728e994bb3cb42a86f81bf6c47d)

Author SHA1 Message Date
Rob Pilling 2023138295 wid_edit: restore alphabetical sort 2023-07-31 22:05:09 +01:00
Rob Pilling d5aade8d48 wid_edit: bump version 2023-07-26 07:27:43 +01:00
Rob Pilling 93f21a51e1 opt? 2023-07-26 07:26:56 +01:00
Rob Pilling 3dd25f0bfd Update changelogs for draw() API change 2023-04-27 18:10:20 +01:00
Rob Pilling 67d89761b5 Fix wid_edit draw() - pass WIDGET as first argument
When attempting to edit a widget whose `draw` function takes the widget as an argument, we get an exception from that `draw` function. This fixes that by catering for both APIs.

The back button widget expects this, as does [`widsleepstatus`], [`widlock`] and [`widlockunlock`].

There are other widgets ([`widmessages`], [`widbatpc`] and [`widalarmeta`]) which use something else for the first parameter, however these are type-checked and used to distinguish calls from `Bangle.drawWidgets()` and elsewhere.

[`widsleepstatus`]: 2f6862024d/apps/widsleepstatus/widget.js (L20)
[`widlock`]: 2f6862024d/apps/widlock/widget.js (L5)
[`widlockunlock`]: 2f6862024d/apps/widlockunlock/widget.js (L27)

[`widmessages`]: 2f6862024d/apps/widmessages/widget.js (L14)
[`widbatpc`]: 2f6862024d/apps/widbatpc/widget.js (L89)
[`widalarmeta`]: 2f6862024d/apps/widalarmeta/widget.js (L28)
2023-04-25 07:22:58 +01:00
Martin Boonk 0c75133350 wid_edit - Bump version 2022-11-06 19:45:32 +01:00
Martin Boonk fa35629f45 wid_edit - Allow setting all areas 2022-11-06 19:45:32 +01:00
Martin Boonk 53661fd11c wid_edit - Adds back functions as option 2022-11-06 19:24:28 +01:00
Martin Boonk 9f17ea5c98 wid_edit - Access global variables explicitly 2022-11-06 19:24:28 +01:00
Martin Boonk 3462b36f9c wid_edit - Wrap loadWidgets instead of replacing it 2022-11-06 13:20:26 +01:00
Adam Schmalhofer 1c8d7d757c Merge branch 'master' into jekyll-apps.json 2022-01-18 15:16:49 +01:00
Richard de Boer e8de7aa662
wid_edit: "highlight" hidden widgets when editing 2022-01-17 21:39:04 +01:00
Richard de Boer d28f2c6236
wid_edit: shrink boot code a bit 2022-01-17 21:18:02 +01:00
Richard de Boer d5a14cacbd
wid_edit: clean up removed widgets in settings app instead
to keep boot code as small as possible
2022-01-17 21:02:44 +01:00
Richard de Boer 9a8ccf0f4f
wid_edit: sort widgets with same sortorder by name
(assuming Array.sort() is stable)
2022-01-17 20:54:34 +01:00
Richard de Boer 80a1513030
wid_edit: clean up removed widgets from settings file on boot 2022-01-17 20:54:34 +01:00
Richard de Boer 66120e31e4
wid_edit: only allow top row, don't "disable" widgets 2022-01-17 20:54:33 +01:00
Richard de Boer 0be14efaec
wid_edit: Widget Editor 2022-01-17 19:00:41 +01:00