1
0
Fork 0
Commit Graph

11 Commits (6db2d36193a30e6800596e2000969e194024bb3d)

Author SHA1 Message Date
thyttan 2d25812228 chore: rm semicolons at end of clkinfo + settings
This was done in response to 9185793042 (commitcomment-148439450) .
2024-10-30 20:20:44 +01:00
Rob Pilling 2023138295 wid_edit: restore alphabetical sort 2023-07-31 22:05:09 +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 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
Richard de Boer e8de7aa662
wid_edit: "highlight" hidden widgets when editing 2022-01-17 21:39:04 +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 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