118 Commits

Author SHA1 Message Date
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
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
18fca243b4 Remove un-needed clear 2021-10-15 08:44:02 +01:00
Gordon Williams
0014dcca71 Bangle.js2: Larger font for E.showMenu 2021-10-14 15:53:58 +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
8cd7c88b15 formatting 2021-09-01 14:42:15 +01:00
Gordon Williams
1ecfdf7d0a avoid skipping widget rendering if an area hasn't been defined for a widget 2021-07-08 11:15:30 +01:00
Gordon Williams
5c70d8ce4e More platform independent fake LED code 2021-06-30 16:31:11 +01:00
Gordon Williams
d8fb779c57 Include 6x15 font for Bangle.js 2 and use it for built-in menus 2021-06-30 13:17:19 +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
Gordon Williams
1d7abbe3b4 Rename SMAQ3 board to BANGLEJS2 2021-06-24 16:32:43 +01:00
Gordon Williams
086690659a Bangle.js: setUI now has 'clock' modes 2021-06-24 13:37:30 +01:00
Gordon Williams
49bcdfb46e Remove buzz in Bangle.js setUI (fix https://github.com/espruino/BangleApps/issues/750) 2021-06-08 09:39:54 +01:00
Gordon Williams
b57db4d7a7 Update showMenu with rendering optimisations 2021-05-27 11:38:35 +01:00
Gordon Williams
90eb7b05ff fix multiple touch handler issue 2021-05-27 08:50:39 +01:00
Gordon Williams
109d2d4a1d Improve drawmenu to avoid a complete redraw when just moving up/down or changing a setting 2021-05-26 20:24:14 +01:00
Gordon Williams
633d3e19b8 Update showPrompt to use setUI 2021-05-26 19:37:31 +01:00
Gordon Williams
b9df56023d Add Bangle.setUI and use for showMenu 2021-05-26 17:07:35 +01:00
Gordon Williams
01d689b64e fix typo in new theme code 2021-05-26 16:37:22 +01:00
Gordon Williams
c886fa247b wrap widget draw/load in a try..catch 2021-05-26 16:36:26 +01:00
Gordon Williams
1f3f580c5f Bangle.js: Add support for global colour themes which affect g.clear/g.reset 2021-05-26 11:02:07 +01:00
Gordon Williams
2adbd148d6 Fix E.showMessage memory leak (storing message in global variable - seemed to be minification issue) 2021-02-17 11:42:12 +00:00
Gordon Williams
d802fcd592 Bangle.js: fix require("locale").time(new Date()) for default locale 2020-10-27 08:09:30 +00:00
Gordon Williams
425435b155 Merging in support for the F5 2020-10-19 15:30:21 +01:00
Gordon Williams
ace3ff50d7 draw widgets at edge of screen for Q3 2020-07-29 09:02:58 +01:00
Gordon Williams
bf5472f796 Fix menu/alert/etc for SMAQ3 2020-07-17 14:41:28 +01:00
Ben Whittaker
ccd06effa1 Make Bangle.showLauncher() use less ram
Avoids having the contents of all files in memory at the same time.
2020-06-13 14:24:20 -04:00
Gordon Williams
4a54cadefe padding 2020-05-11 11:46:07 +01:00
Gordon Williams
26cb781949 Bangle.js: fix 'speed' units for built-in locale 2020-05-07 08:22:32 +01:00
Gordon Williams
c6d011c7aa Bangle.js: fix 'short' time for built-in locale 2020-05-06 08:45:14 +01:00
Gordon Williams
b96a7abef8 Bangle.js: fix post-kickstarter issue adding widgets in bottom of screen (#1790) 2020-04-17 08:39:30 +01:00
Gordon Williams
87d8b8cc72 Bangle.js: Now clear entire top/bottom row if there are widgets in it (fix #1790) 2020-03-31 15:58:56 +01:00
Gordon Williams
e9163cc12b Bangle.js: Add 'meridian' to locale library 2020-03-26 08:20:34 +00:00
Gordon Williams
292f7d0dbf Tweaks to prev. commit, ref: https://github.com/espruino/BangleApps/issues/121 2020-03-09 14:46:58 +00:00
Gordon Williams
3182c0f071 Bangle.js: Modify Bangle.drawWidgets to only clear the areas where widgets actually are, not the whole top&bottom bar (ref https://github.com/espruino/BangleApps/issues/121) 2020-03-09 14:42:52 +00:00