253 Commits

Author SHA1 Message Date
Anton
2ec20b21b8 Update locale with support for meridians 2024-08-15 21:31:50 +02:00
Gordon Williams
ad25468f82 Bangle.js2: If tapping at the bottom of the screen on a menu that is <12px onscreen, choose the menu item above (#3476) 2024-07-04 11:17:28 +01:00
Gordon Williams
57d6b2277f Bangle.js2: After Bangle.showTestScreen, put Bangle.js into a hard off state (not soft off) 2024-06-28 08:59:14 +01:00
Gordon Williams
43f806d691 Bangle.js1: Fix issue where going out of and back into a menu would cause 'Back' to be added twice (fix #2470) 2024-05-21 11:52:18 +01:00
Gordon Williams
04a74c8eda Bangle.js: Remove calls to require('locale').translate in menus as it's been deprecated and replaced with /*LANG*/ 2024-05-15 14:22:24 +01:00
Gordon Williams
476724364a check reported voltage range 2024-04-29 16:13:33 +01:00
Gordon Williams
86099d41fc Bangle.js2: Bangle.showTestScreen now shows firmware and battery 2024-04-29 16:02:01 +01:00
Gordon Williams
0fc1f3c344 Ensure Bangle.load(".bootcde") just calls load() if no uiRemove - fix error loading clock without widgets
Fixes https://github.com/espruino/BangleApps/pull/3353
2024-04-15 13:21:33 +01:00
Gordon Williams
03a0c06c3e Merge branch 'master' into atjn-deprecate-currency
# Conflicts:
#	ChangeLog
#	libs/js/banglejs/locale.min.js
2024-03-22 09:09:22 +00:00
Gordon Williams
34c8cb268e Bangle.js: Locale currency deprecated, 'number' updated to BangleApps version with thousands separator, date now doesn't sometimes have trailing spaces 2024-03-22 09:02:59 +00:00
thyttan
fbef914604 locale: fix trailing space on date < 10
The trailing whitespace would make the date string look uncentered on
e.g. `antonclk` clock app on Bangle.js.

Possibly similar change should be made to the `locale` library of
espruino/BangleApps - but I'm not sure.
2024-03-21 20:23:37 +01:00
Anton
e5fbdaa9bb Revert changes to currencySym 2024-03-20 13:54:58 +01:00
Anton
378b34d717 Deprecate currency information in locale 2024-03-20 12:20:17 +01:00
Gordon Williams
8f18a3002e Bangle.js: Bangle.setUI's back widget now uses stopEventPropagation to stop other touch handlers getting called
https://github.com/espruino/BangleApps/pull/3233#issuecomment-1975384171
2024-03-04 11:15:57 +00:00
Gordon Williams
5aecc1a66c one more minor self test tweak 2024-01-10 13:32:16 +00:00
Gordon Williams
5da926f243 Minor sanity tweaks for Bangle self test 2024-01-10 13:30:29 +00:00
Gordon Williams
f37bb94a1d Squeeze a few more bytes out for Bangle.js 1 2024-01-08 16:49:53 +00:00
Gordon Williams
89b99d3bfe Bangle.js2: Add 'Test' option to factory reset menu, and Bangle.showTestScreen() 2024-01-08 16:22:56 +00:00
Gordon Williams
463e94a033 updated AT library 2023-11-08 13:35:10 +00:00
Gordon Williams
bbb6c89ebe Bangle.js: Change order of items in the Recovery Menu (hold BTN at boot) to put more common options first 2023-10-05 11:39:41 +01:00
Gordon Williams
138452fb65 Merging Dickens-specific changes into master 2023-09-27 14:57:47 +01:00
Gordon Williams
9a1d5b6202 Minify for https://github.com/espruino/Espruino/pull/2393 2023-07-20 12:33:38 +01:00
Rob Pilling
a4cb4002de Guard against Bangle.setUI({ <no mode> })
Following on from #2389, this makes it clear that while `setUI()`
can be used to reset the UI, `setUI({})` cannot, and must always
specify `mode` (amongst other options).
2023-07-17 20:07:48 +01:00
Gordon Williams
554e2dfb19 Bangle.js2: number selector now supports tapping at top/bottom to increment/decrement value 2023-07-06 11:41:00 +01:00
Gordon Williams
529fb0779e Bangle.js: setUI now has a 'redraw' argument to allow apps to provide a way to redraw themselves
Also fixes for scroller.isActive (and redraw checks) that break if there is a back icon
2023-06-20 11:00:23 +01:00
Gordon Williams
6111708929 re-minify using newer minifier 2023-06-13 09:22:21 +01:00
Gordon Williams
a0e2d9231d Bangle.js: showMenu now won't redraw menu items if the onchange handler changed the menu
https://github.com/espruino/BangleApps/issues/2816

Also change builtin unicode string escapes to \x## - faster and encodes as a single byte so doesn't break when Unicode enabl;ed on builds
2023-06-13 09:21:23 +01:00
Gordon Williams
85872e6fff Bangle.js: Add Bangle.showRecoveryMenu, and if storage is corrupt then show it rather than automatically doing factory reset 2023-06-05 16:07:55 +01:00
Gordon Williams
9c94cb9754 Bangle.js: E.showPrompt now resets background color before clearing the screen 2023-05-19 16:36:59 +01:00
Gordon Williams
b6f8105b63 Bangle.js2: Ensure that changing a menu item when half-scrolled off screen doesn't overwrite widgets 2023-04-05 10:47:19 +01:00
Gordon Williams
9568516412 Bangle.js2: Fix regression in E.showMenu so you can use menu items with ':undefined' (as in the example in the reference) 2023-02-20 16:23:04 +00:00
Gordon Williams
2aa394040c Bangle.js2: Fix scroller overlap with widget bar when scrolled more than the screen's height in one step 2022-12-14 10:50:51 +00:00
Gordon Williams
4adadf7b26 formatting 2022-12-08 10:48:38 +00:00
Gordon Williams
84675e4368 Bangle.js1: Bangle.setUI({back}) now responds to BTN3 if there were no other watches on buttons 2022-12-07 08:19:56 +00:00
Gordon Williams
2d3c34ef7c Bangle.js1/2: Fix showMenu/showScroller spacing with back if no widgets loaded (ref #2286) 2022-12-05 16:35:01 +00:00
Gordon Williams
039ffb5441 Bangle.js2: setUI(updown/leftright) now responds to button on falling (not rising) edge 2022-12-01 10:29:06 +00:00
Martin Boonk
9fa477a69a E.showScroller_Q3 - Give coordinates in item to select callback 2022-11-16 12:11:31 +01:00
Gordon Williams
512b4daadc Bangle.js: setUI now calls g.reset(), and also protects against recursion in uiRemove 2022-11-15 10:43:58 +00:00
Martin Boonk
df5472ef33 Remove checking for default app during Bangle.load() 2022-11-11 12:32:42 +01:00
Martin Boonk
87f9d9a23d Merge remote-tracking branch 'upstream/master' into loading 2022-11-11 12:26:51 +01:00
Martin Boonk
6969b2818c Load default app on Bangle.load() 2022-11-10 23:11:24 +01:00
Martin Boonk
be4eca105c Adds Bangle.load and Bangle.showClock methods 2022-11-10 22:33:13 +01:00
Martin Boonk
3e907b70c6 Merge remote-tracking branch 'upstream/master' into remove 2022-11-10 19:06:37 +01:00
Gordon Williams
9bc7bedf34
Merge branch 'master' into widgetsclear 2022-11-10 09:23:07 +00:00
Gordon Williams
42b6dbe8ad Actually fix showPrompt after last change. Turns out the CI tests are useful after all! 2022-11-09 12:09:26 +00:00
Gordon Williams
7374b6cd10 Fix regression caused by removing 'touch' event type in setUI 2022-11-09 11:39:08 +00:00
Gordon Williams
83d485e076 Bangle.js 2: Bangle.setUI remove unused 'touch' mode, ensure 'back' button doesn't overlap if button is already used (fix #2287)
Also fix https://github.com/espruino/EspruinoDocs/issues/682
2022-11-09 10:32:43 +00:00
Martin Boonk
d3d3615ab3 Implement passing through remove methods for E.show* 2022-11-07 23:55:59 +01:00
Martin Boonk
64958d3e65 Only clear if widgets with width>0 exist 2022-11-07 23:28:43 +01:00
Gordon Williams
4bb70240fc Bangle.js: showLauncher's 'fast load' now updates __FILE__ 2022-10-28 12:03:18 +01:00