149 Commits

Author SHA1 Message Date
Richard de Boer
8200329e35
Bangle.js2: clean up setUI custom swipeHandler 2022-03-12 21:32:52 +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
b96719cfb2
Merge pull request #2159 from andrewgoz/master
Update E_showScroller.js
2022-02-28 10:12:56 +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
Gordon Williams
560ef345cf Bangle.js2: Update E.showPrompt with a bigger touchable area around buttons 2022-02-24 13:49:34 +00: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
d86e650ca6 update minified 2022-02-22 16:16:54 +00:00
Andrew Gregory
ebe415a201
Update Bangle_setUI_F18.js
UI select only when button is released, not pressed.
2022-02-22 23:56:16 +08: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
78ee733bc9 Add E.showMenu({"":{back:function}, ...}) for easy specification of 'back' menu item 2022-02-22 13:37:43 +00:00
Gordon Williams
30fa6434cb Fix highlighted menu items in submenu 2022-02-22 10:28:19 +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
87d0c0a7ba Fix issue where 'LCD Brightness' menu didn't highlight the correct item
http://forum.espruino.com/comments/16403621/
2022-02-18 11:24:03 +00:00
Gordon Williams
3909d560ba Fix wrap on new menu items 2022-02-15 15:05:01 +00:00
Gordon Williams
44470c68cb Fix new menu system for numeric menu items with a step 2022-02-14 13:13:55 +00:00
Gordon Williams
5b97d931e4 misc tweaks to menu 2022-02-11 11:16:26 +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
a8c74cbe55 minify 2621fadb082f5fa7633744afa0ec47f995709cfb
Bangle.js1/2 : Fix inconsitent scroll indicator in menus (fix #2104)
2022-01-28 13:07:56 +00:00
Gordon Williams
2621fadb08
Merge pull request #2134 from jes/master
Fix menu arrow behaviour on Bangle.js 1
2022-01-28 11:57:30 +00:00
James Stanley
219d26fdb9 Fix menu arrow behaviour on Bangle.js 1 2022-01-28 11:27:16 +00:00
Gordon Williams
1c2c11171b Bangle.js2 : Fix inconsitent scroll indicator in menus (fix #2104) 2022-01-28 11:13:40 +00:00
James Stanley
5794dc3d27 Fix menu arrow behaviour 2022-01-27 21:15:38 +00:00
Gordon Williams
c1e2a603ec Bangle.js: Fix E.showMenu clear if background color is set (https://github.com/espruino/BangleApps/issues/1024)
Bangle.js: Re-add E.showMenu predraw callback (fix #2108)
2021-12-08 14:39:27 +00:00
Gordon Williams
cd66c00bd0 Bangle.js2: Minify Bangle.drawWidgets
Bangle.js: Bangle.appRect now copes with widgets at the bottom
2021-12-02 15:34:36 +00:00
Gordon Williams
0dc2ae4ee0 Bangle.js: Ensure locale honours 12 hour setting (https://github.com/espruino/BangleApps/issues/892) 2021-11-29 09:54:12 +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
db0f4ecf2b Bangle.js1: Bangle.setUI now deletes touchHandler (fix #2095) 2021-11-17 11:01:19 +00:00
Gordon Williams
b8c9194bdc Bangle.js1: Fix E.showScroller implementation 2021-11-10 13:36:01 +00:00
Richard de Boer
0f1476cede E_showMenu improvements
- remove unused variable
- remove unused parameter from `select()`
- shave a few bytes off `move()`

If a numerical item has `item.wrap` we no longer check if `item.min/max` is set,
because your menu will be broken either way.
2021-11-01 19:43:26 +01:00
Richard de Boer
a27ce44b01 Bangle.js: add wrap option for numerical E.showMenu items
Same as EspruinoDocs `graphical_menu.js`
2021-10-29 18:11:32 +02:00
Gordon Williams
58685d4884 Bangle.js2: Bangle.dragHandler is now cleared by setUI (fix #2078) 2021-10-28 09:14:46 +01:00
Gordon Williams
d0ebf5e6fe update minified locale 2021-10-27 10:38:02 +01: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
c05ef9a741 ensure messages appear immediately 2021-10-26 10:22:21 +01:00
Gordon Williams
3814bedff6 Bangle.js: Fix issue where minified E.showMenu was creating a global var called 'c' 2021-10-26 10:03:34 +01:00
Gordon Williams
8ae6fe20d9 New Bangle.js firmwares
Bangle.js: A single widget load failure will now not remove all widgets
Bangle.js: widgets are now sorted by .sortorder
2021-10-25 16:48:12 +01:00
Gordon Williams
2e45d3a071 Bangle.js: Add E.showScroller for scrollable lists 2021-10-25 15:06:03 +01:00
Gordon Williams
62a456e99a Bangle.js: Ensure builtin E.show* (and fake LEDs) wake the LCD up 2021-10-21 08:36:50 +01:00
Gordon Williams
20ae5fa96c Bangle.js2: Fix setUI clockupdown handling of 'up' 2021-10-21 08:33:30 +01:00