21 Commits

Author SHA1 Message Date
thyttan
8a5b7b36de
E_showPrompt_Q3: permit passing falsy values
Author: @bobrippling

Co-authored-by: Rob Pilling <robpilling@gmail.com>
2025-08-28 21:43:02 +02:00
thyttan
79723567b6 E_showPrompt_Q3: improve readability by adding else 2025-08-27 22:30:00 +02:00
thyttan
5b83d75c95 E_showPrompt_Q3: allow long press actions
as proposed at https://github.com/espruino/BangleApps/issues/3915#issuecomment-3212066440
2025-08-22 23:29:40 +02:00
Gordon Williams
016d7fac62 Bangle.js2: showPrompt better alignment of text if no title, and add buttonHeight option 2025-04-25 16:06:29 +01:00
Gordon Williams
595160b440 Tweaks to allow up to 6 buttons in showPrompt, different heights as per https://github.com/orgs/espruino/discussions/7692#discussioncomment-12418912
Bangle.js2: Fix issue when an onchange callback from E.showMenu submenu changes the menu immediately - see https://github.com/orgs/espruino/discussions/7697
2025-03-07 09:36:38 +00:00
Gordon Williams
b84c0f49ab Add findFont function for Bangle.js 2, use in showPrompt/showMessage
Note: this breaks Bangle.js 1 E.showMessage for now (until we have findFonts)
2025-03-05 15:45:49 +00:00
Gordon Williams
04a74c8eda Bangle.js: Remove calls to require('locale').translate in menus as it's been deprecated and replaced with /*LANG*/ 2024-05-15 14:22:24 +01:00
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
9c94cb9754 Bangle.js: E.showPrompt now resets background color before clearing the screen 2023-05-19 16:36:59 +01:00
Martin Boonk
3e907b70c6 Merge remote-tracking branch 'upstream/master' into remove 2022-11-10 19:06:37 +01:00
Gordon Williams
42b6dbe8ad Actually fix showPrompt after last change. Turns out the CI tests are useful after all! 2022-11-09 12:09:26 +00:00
Gordon Williams
7374b6cd10 Fix regression caused by removing 'touch' event type in setUI 2022-11-09 11:39:08 +00:00
Martin Boonk
d3d3615ab3 Implement passing through remove methods for E.show* 2022-11-07 23:55:59 +01:00
Gordon Williams
8458dfde3c Bangle.js2: Fix text size on buttons when they are tapped in E.showPrompt 2022-07-01 12:03:11 +01:00
Salim Blume
7b3b17df8a Provide visual feedback on prompt button press 2022-03-17 22:56:07 -05:00
Gordon Williams
560ef345cf Bangle.js2: Update E.showPrompt with a bigger touchable area around buttons 2022-02-24 13:49:34 +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
62a456e99a Bangle.js: Ensure builtin E.show* (and fake LEDs) wake the LCD up 2021-10-21 08:36:50 +01:00
Gordon Williams
c3e77b7f23 Bangle.js: E.showMessage/showPrompt can now display images via optional img argument
E.showMessage/showPrompt handle padding correctly if no widgets are displayed
2021-10-20 16:43:34 +01:00
Gordon Williams
bca64ccb1e Graphics: add wrapString to wrap messages to the correct length
Bangle.js: update showMessage and showPrompt with correct wrapping
2021-10-07 10:43:29 +01:00
Gordon Williams
d557c8f191 Change default highlight colour in theme, add custom showPrompt (which uses touch) 2021-06-30 11:53:24 +01:00