15 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
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
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
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
9fa477a69a E.showScroller_Q3 - Give coordinates in item to select callback 2022-11-16 12:11:31 +01:00
Martin Boonk
d3d3615ab3 Implement passing through remove methods for E.show* 2022-11-07 23:55:59 +01:00
Gordon Williams
81cdb27bc5 fix regression in last fw 2022-02-22 14:54:54 +00:00
Gordon Williams
6206534fae Bangle.js2: Add 'back' option to E.showScroller and Bangle.setUI 2022-02-22 14:23:12 +00:00
Gordon Williams
712cf34ac6 Bangle.js2: include new touchscreen E.showMenu system 2022-02-11 11:02:28 +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
d1011a1985 Bangle.js2: E.showScroller to respect widgets on bottom row (using appRect) 2022-01-31 09:47:29 +00:00
Gordon Williams
b5d691a594 Bangle.js2: Fix E.showScroller when there are less than 3 menu items 2021-11-23 20:04:35 +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