Commit Graph

14 Commits (595e4a71ea73f475b5e07dc70c808a3de8bf1eaf)

Author SHA1 Message Date
Gordon Williams 1ec8fba5ba bootloader and clock_info update - checking hash of all js vs just boot.js is the same cost, so we make caches of widgets and clockinfos in bootupdate - this drastically improves boot time 2024-10-24 19:56:17 +01:00
Gordon Williams 66b0edf6c2 clock_info 0.13: Cache loaded ClockInfos so if we have clockInfoWidget and a clock, we don't load them twice (saves ~300ms) 2024-10-24 12:43:16 +01:00
Gordon Williams b4cd690c48 clockinfo: Add drawFilledImage to allow drawing icons with a separately coloured middle0.12: Add drawFilledImage to allow drawing icons with a separately coloured middle
pebblepp/analogquadclk: not use drawFilledImage fn
Add twotwoclock, a 2x2 digital clock with clockinfos
2024-05-09 09:11:06 +01:00
thyttan 8b6d7791ca Merge remote-tracking branch 'upstream/master' into clockinfo 2024-04-19 20:07:21 +02:00
Rob Pilling 2bbef9f740 clkinfo: make `CLKINFO_FOCUS` a counter
This avoids issues when we have multiple clkinfos visible. The first clkinfo may want to focus itself, but a second clkinfo may then unfocus, deleting the first's effects (i.e. setting `CLKINFO_FOCUS`).

In detail:

`CLKINFO_FOCUS` will be set (to `true`) by the first handler (left hand clkinfo) and then unset (/ `delete`d) by the second handler (right hand clkinfo).

This is done in [the `touchHandler`](c2ea454a3b/apps/clock_info/lib.js (L313-L324)).

This commit makes `CLKINFO_FOCUS` a count.

- When we have a tap on a previous clkinfo (previous as in, earlier in the event handler list), it'll focus itself, `CLKINFO_FOCUS++`
- The later handler comes along, unfocuses itself, `CLKINFO_FOCUS--`
- `CLKINFO_FOCUS` is now `1`, so clkinfo is registered as being focussed still, meaning quicklaunch will work because of:

> c2ea454a3b/apps/quicklaunch/boot.js (L36-L36)

Fixes #3355
2024-04-18 18:12:58 +01:00
thyttan f508f66c57 clock_info: prepend swipe listener if possible 2024-04-18 01:37:54 +02:00
Rob Pilling 5be18f4261 clock_info: expose a save (settings) method 2024-03-16 08:47:32 +00:00
Rob Pilling 9c16fa6c79 clock_info: bump version 2024-03-11 08:57:51 +00:00
Rob Pilling 8a2a5851be clock_info: display clkinfo load error 2023-07-27 18:12:05 +01:00
Gordon Williams a59957be1e When >1 clockinfo, swiping one back tries to ensure they don't display the same thing 2023-06-30 13:30:23 +01:00
Gordon Williams b5167d7068 +0.04: On 2v18+ firmware, we can now stop swipe events from being handled by other apps
+      eg. when a clockinfo is selected, swipes won't affect swipe-down widgets
+0.05: Reported image for battery is now transparent (2v18+)
Fix https://github.com/espruino/BangleApps/issues/2749
2023-05-15 09:49:17 +01:00
Gordon Williams cde3818815 clockinfo 0.03: Reported image for battery now reflects charge level 2023-05-11 12:38:27 +01:00
Gordon Williams 9d9a20b9f5 fix settings page 2023-01-30 10:29:31 +00:00
Gordon Williams de40f314c7 Moved clock_info to a module 2023-01-27 13:33:46 +00:00