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
Andrew Gregory
61dd698a37
Update E_showScroller.js
...
Fix arrow drawing
2022-02-26 23:17:25 +08:00
Andrew Gregory
410126ccc4
Update E_showScroller.js
...
Simplify code
2022-02-26 23:07:07 +08:00
Andrew Gregory
adc6bb7f2a
Update E_showScroller.js
...
Fix arrows drawing when they shouldn't.
2022-02-26 22:59:44 +08:00
Andrew Gregory
51f367369f
Update E_showScroller.js
...
Simplify calc
2022-02-25 16:15:15 +08:00
Andrew Gregory
498b92af84
Update E_showScroller.js
...
Refactoring
2022-02-25 16:05:18 +08:00
Andrew Gregory
ef8167f552
Update E_showScroller.js
...
More border drawing fixes
2022-02-24 11:45:37 +08:00
Andrew Gregory
6d92ba0798
Update E_showScroller.js
...
Fix selected border
2022-02-24 11:37:48 +08:00
Andrew Gregory
36e89aad32
Update E_showScroller.js
...
Change scroll to be a property instead of a function and use it instead of selected
2022-02-24 11:25:59 +08:00
Andrew Gregory
58712a11bb
Update E_showScroller.js
...
Respect Bangle.appRect
Only draw arrows when needed
Prefer to draw selection in middle of screen
Implement scroll function
Pass selected flag to draw function
Make selection box drawing optional
2022-02-23 21:35:42 +08: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