11 Commits

Author SHA1 Message Date
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
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
2d3c34ef7c Bangle.js1/2: Fix showMenu/showScroller spacing with back if no widgets loaded (ref #2286) 2022-12-05 16:35:01 +00:00
Martin Boonk
d3d3615ab3 Implement passing through remove methods for E.show* 2022-11-07 23:55:59 +01:00
Gordon Williams
95ea8838ff Bangle.js1: Add 'back' option to E.showScroller and Bangle.setUI
Bangle.js1: setUI button handlers now work on falling edge
            Bangle.js: Add setUI custom 'swipe' handler
2022-03-02 15:41:41 +00:00
Gordon Williams
01eb8e1e5d minified version of b96719cfb2cb01dd6ba1515a54d6a4ebff7935f6 2022-02-28 10:14:18 +00:00
Gordon Williams
2ec19bccfb Ensure showscroller on Bangle.js 1 honours options.scroll (#2156) 2022-02-21 16:42:54 +00:00
Gordon Williams
ff25ff80df Bangle.setUI is now minified, also calls Bangle.uiRemove if it was set (to clean up custom UI additions)
E.showScroller tweaks to allow redraw requests, get/set initial scroll amount, negative scroll (for titles)
2022-02-09 14:12:47 +00:00
Gordon Williams
b8c9194bdc Bangle.js1: Fix E.showScroller implementation 2021-11-10 13:36:01 +00:00
Gordon Williams
35e46ef6a1 Bangle.js: Add Bangle.appRect to allow apps to see how much space is available for them 2021-10-27 10:14:33 +01:00
Gordon Williams
2e45d3a071 Bangle.js: Add E.showScroller for scrollable lists 2021-10-25 15:06:03 +01:00