172 Commits

Author SHA1 Message Date
Richard de Boer
a14e6166c8
Bangle.js1: try harder to only show E.showMenu submenu for option lists 2022-04-28 20:29:23 +02:00
Richard de Boer
8b32ec1c78
Merge branch 'master' into b1-submenu 2022-04-28 19:47:31 +02:00
Gordon Williams
4bac7889e5
Merge pull request #2185 from rigrig/keep-setUI-back-widget
setUI: don't redraw widgets when replacing 'back'
2022-04-28 09:13:42 +01:00
Richard de Boer
68b19612d2
Bangle.js2: don't make setUI redraw widgets if we replace the back button with a new one 2022-04-27 22:16:45 +02:00
Richard de Boer
e455b7ba1d
Bangle.js1: don't make setUI redraw widgets if we replace the back button with a new one 2022-04-27 22:14:02 +02:00
Richard de Boer
5c187d45c5
Merge branch 'b1-menu-back-button' into b1-submenu 2022-04-27 21:47:23 +02:00
Richard de Boer
0c8b7c1c20
Bangle.js1: add submenu to E.subMenu
Only for numeric values with <20 options, otherwise use in-place edit mode
2022-04-27 21:24:38 +02:00
Richard de Boer
195f0549f8
Bangle.js1: show back button for "< Back" item in E.showMenu
Simply by pass it on to setUI.
This also works for options.back, because that adds a "< Back" item.
2022-04-27 18:14:47 +02:00
Gordon Williams
de6c3f63e3 Bangle.js1: E.showMenu now displays boolean values with no format as a checkbox 2022-04-26 10:43:57 +01:00
Gordon Williams
14037d7890 Bangle.js2: Fix E.showMenu title changing color after scroll down+up *if* a non-standard theme was used 2022-04-21 16:08:24 +01:00
Gordon Williams
8de5cf1957 Merge branch 'master' of github.com:espruino/Espruino
# Conflicts:
#	libs/js/banglejs/E_showMenu_Q3.min.js
2022-04-20 15:32:08 +01:00
Gordon Williams
f2e9e4e792 Bangle.js2: Fix issue with E.showMenu creating a global s variable 2022-04-20 15:30:44 +01:00
storm64
7b2c745f77
Update E_showMenu_Q3.min.js
Needed to recreate minification due to a replacement of the key name:
```
a=g.wrapString(m[a],b.w-h);1<a.length&&(g.setFont("6x15"),a=g.wrapString(__m[a]__,b.w-h));
```
The last `m[a]` has no matching element anymore.
2022-04-20 00:52:37 +02:00
storm64
ec09eeedd1
Update E_showMenu_Q3.min.js
Corrected shortened variable name.
2022-04-20 00:36:15 +02:00
storm64
edb0bb3680
Update E_showMenu_Q3.min.js
Recheck string wrapping after font change.
2022-04-20 00:31:32 +02:00
storm64
2854fc15b3
Update E_showMenu_Q3.js
Recheck string wrapping after font change.
2022-04-20 00:23:00 +02:00
Gordon Williams
c7f4fa59ef quick tweak to recent locale change 2022-03-30 15:07:30 +01:00
Gordon Williams
95da6d156c Bangle.js: default 'locale' now supports second 'dp' argument for decimal places in distance/speed/temp 2022-03-30 14:51:03 +01:00
Gordon Williams
0e210613ae Bangle.js2 manu system now uses fg2/bg2 (was fg/bg2) 2022-03-29 08:39:41 +01:00
Gordon Williams
cf72f55e96 Update minified for 7b3b17d 2022-03-18 08:56:22 +00:00
Salim Blume
7b3b17df8a Provide visual feedback on prompt button press 2022-03-17 22:56:07 -05:00
Gordon Williams
d23aa21ed3 Bangle.js2: New E.showMenu now allows menu items of type 'string' - fixes 'Passkey' settings menu 2022-03-15 10:36:46 +00:00
Gordon Williams
13390a3318 Bangle.js2: setUI (now doesn't forward touch events if tapping over the back button (fix #2170) 2022-03-14 14:05:30 +00:00
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