Commit Graph

82 Commits (master)

Author SHA1 Message Date
Rob Pilling 2c51bc80e5 promenu: fix double-render from having two callbacks with "updown" 2025-07-23 20:54:14 +01:00
Rob Pilling c0545cf2c2 promenu: remove redundant setColor 2025-07-23 20:33:47 +01:00
Rob Pilling 65b9dbd388 promenu: bump version 2025-07-23 20:11:14 +01:00
Rob Pilling 372dfed735 promenu: generate js 2025-07-23 20:10:19 +01:00
Rob Pilling 5ae472358e promenu: workaround 2v2[67] bug - use separate touch handler
See:
- 8b2e5a5
- https://github.com/orgs/espruino/discussions/7697#discussioncomment-13782299
- https://github.com/espruino/Espruino/issues/2648#issuecomment-3095831472
2025-07-23 20:08:18 +01:00
Rob Pilling 25af19d98b promenu: pull out setUI() options 2025-07-23 20:07:11 +01:00
Rob Pilling febeda3375 promenu: pull out touch handler 2025-07-23 20:06:02 +01:00
Rob Pilling 7b5a7afb06 promenu: typecheck `back()` 2025-07-23 20:05:19 +01:00
Rob Pilling 79a8f8be47 promenu: E.showMenu() acts as Bangle.setUI() (i.e. reset) 2025-07-23 20:04:49 +01:00
Rob Pilling 4c7556d8f6 Merge branch 'master' into fix/promenu-y-offset
Conflicts:
	apps/promenu/ChangeLog
2025-04-30 22:34:46 +01:00
Rob Pilling 123498424a promenu/folderlaunch: update to new touch event arg
e.g. from https://github.com/espruino/BangleApps/issues/3804#issuecomment-2834920685

aka:
- https://github.com/espruino/BangleApps/pull/3604
- https://github.com/espruino/Espruino/pull/2565
- https://github.com/espruino/BangleApps/pull/3609
- https://github.com/espruino/Espruino/pull/2569
2025-04-28 21:44:15 +01:00
Rob Pilling 6736850f33 promenu: always render at a fixed y
i.e. we assume the back button will (eventually) appear, so we don't
want to hit a bug where we sometimes render at `y: 0` and sometimes
at `y: 24`
2025-04-28 20:46:06 +01:00
Rob Pilling f1c03e4e72 promenu: rename settings (avoid clobbering short variables)
... since `S` is used a lot in the IDE
2025-04-25 17:24:58 +01:00
Rob Pilling 65953e6f4c promenu: bump version 2025-03-25 18:02:44 +00:00
Rob Pilling 0d18a1fd76 promenu: fix settings being overwritten by alarm/settings apps 2025-03-25 18:02:00 +00:00
Rob Pilling 4bad06714a promenu: whitespace 2025-03-25 18:01:50 +00:00
Tom Wallroth d166c4224a remove sanitycheck exception, by builing using `typescript/build.sh` 2025-01-02 10:22:06 +01:00
Tom Wallroth 8e5453bc56 fixed promenu-0.11 metadata.json 2024-12-30 16:23:45 +01:00
Tom Wallroth 26114d9767 0.11: Add options for natural scroll and disabling wrap-around 2024-12-30 16:18:28 +01:00
Rob Pilling b2ff2eb47f promenu: call `options.remove` when removed 2024-12-03 12:16:33 +00:00
Rob Pilling 7c2f191fa7 promenu: don't show "..." if the string isn't truncated 2024-10-16 21:58:19 +01:00
Rob Pilling d1de2fa67c promenu: consts 2024-10-16 21:57:55 +01:00
Rob Pilling bb769a0bb9 promenu: don't modify the menu object
This fixes hadash, which uses `menu[""]` after calling `showMenu`
2024-10-03 12:01:42 +01:00
Rob Pilling aa6e46898f promenu: generate js 2024-09-12 18:22:47 +01:00
Rob Pilling 4061b419c6 promenu: scroll truncated menu lines 2024-09-12 18:22:37 +01:00
Rob Pilling 8aa839be26 promenu: factor out `drawLine()` 2024-09-12 18:21:46 +01:00
Rob Pilling 9230d112c0 promenu: bump version 2024-08-19 07:35:07 +01:00
Rob Pilling c6d4713f5b promenu: only calculate offsets for plain (non-image) strings
This fixes the alarm app, for example, which shows images within the strings
2024-08-10 16:19:30 +01:00
Rob Pilling 5dac7b2624 promenu: return a scroller (fixes alarms app) 2024-08-10 15:54:12 +01:00
Rob Pilling a97ff20066 promenu: bump version 2024-06-16 17:53:36 +01:00
Rob Pilling 120bc9a300 promenu: generate JS 2024-06-16 17:52:43 +01:00
Rob Pilling 7822445b6a promenu: fix values going below minimum 2024-06-16 17:52:10 +01:00
Rob Pilling 1fa407b305 promenu: only run onchange/draw if value changes 2024-06-16 17:51:32 +01:00
Rob Pilling d9bc0aaffa promenu: fix whitespace 2024-06-16 17:51:08 +01:00
Rob Pilling 6bd3d2e599 promenu: fix removal of final menu item & `E.showMenu(<nothing>)` 2024-05-21 21:44:54 +01:00
Rob Pilling dd0fd23af1 promenu: register swipe as part of setUI
... for removing later, e.g. when a submenu comes along
2024-05-14 21:53:24 +01:00
Rob Pilling 832306f4db promenu: bump version, update changelog 2024-05-14 08:36:03 +01:00
Rob Pilling 760ddb9403 promenu: generate js 2024-05-14 08:36:03 +01:00
Rob Pilling a0e5090254 promenu: fix boolean overwriting 2024-05-14 08:36:03 +01:00
Rob Pilling b5ad702c3a promenu: simplify if-else 2024-05-14 08:36:03 +01:00
Rob Pilling 9c6f14a63e promenu: item function typings / tweaks 2024-05-14 08:36:03 +01:00
Rob Pilling b5313e5c82 promenu: pass `back` into setUI() for the back button 2024-05-14 08:36:03 +01:00
Rob Pilling 420f08deb5 promenu: fill out README 2024-05-14 08:35:58 +01:00
Rob Pilling c22f16eb74 promenu: typescript 2024-05-13 18:20:32 +01:00
Rob Pilling 6c4bd363da promenu: fix back/setUI wiping previous setUI 2024-05-13 18:20:32 +01:00
Rob Pilling c0f4a195db promenu: options.scroll support 2024-05-13 18:20:32 +01:00
Rob Pilling 927102ab96 promenu: options.back() support 2024-05-13 18:20:32 +01:00
Rob Pilling 0fc8fdd636 promenu: options.topWidgets for leaving widget space 2024-05-13 18:20:32 +01:00
Anton cad2ffe283 Bump version for all apps with fixed undefined variables 2024-03-13 11:56:27 +01:00
Anton a468292536 Fix apps with undefined variables 2024-03-13 11:51:40 +01:00