thyttan
9c4fd1d94c
Slider: Add some documentation
2023-10-17 22:49:32 +02:00
thyttan
573fa3806c
Slider: remove some unused vars and consts
2023-10-17 22:49:32 +02:00
thyttan
ecd4a7ee0c
Slider: Assign empty function to cb if undefined
2023-10-17 22:49:32 +02:00
thyttan
0952ad9a26
Slider: refactor logic re auto progressing sliders
2023-10-17 22:49:32 +02:00
thyttan
98a6417008
Slider: move `let incr` into `while` scope
2023-10-17 22:49:32 +02:00
thyttan
2444e75628
Slider: small refactor to shorten code
2023-10-17 22:49:32 +02:00
thyttan
b9c5245ba0
Slider:tweak code re zero level on rounded sliders
2023-10-17 22:49:32 +02:00
thyttan
5657492cb4
Slider:move laziness from draw fun to drag handler
2023-10-17 22:49:31 +02:00
thyttan
8c4ad72d1d
Slider: fix map input for horizontal sliders
2023-10-17 22:49:31 +02:00
thyttan
6f4b87666a
Slider: fix level=0 on rounded horizontal sliders
2023-10-17 22:49:31 +02:00
thyttan
c2b2620268
Slider:map input acounts for size & pos of slider
...
... and also if the slider is rounded.
2023-10-17 22:49:31 +02:00
thyttan
d2f69df3bf
Slider: fix logic re rounded or not
2023-10-17 22:49:31 +02:00
thyttan
cd4e4abee2
Slider: refine drawing rounded sliders
...
So far only tested on a standard config width slider.
2023-10-17 22:49:31 +02:00
thyttan
52fe14fb32
Slider: set timeoutID to `undefined` on remove
...
... fixing interference with other timeouts where the same id was assigned to
another timeout that would be deleted erroneously. This was tracked down
because a timeout in the `spotrem` version being developed alongside
this slider module would stop executing code.
2023-10-17 22:49:31 +02:00
thyttan
eb00e69431
Slider: fix gh workflow error
...
... and fix some warnings from Espruino Web IDE
2023-10-17 22:49:31 +02:00
thyttan
31a6de6e3f
Slider: vim auto format - no functional change
2023-10-17 22:49:31 +02:00
thyttan
8e6b9c7308
Slider: add ability to limit drag area
...
... of the sliders drag handler.
2023-10-17 22:49:31 +02:00
thyttan
14dd20791f
Slider: fix dy not initialized for increment mode
2023-10-17 22:49:31 +02:00
thyttan
ef650f5359
Slider: list currLevel among the constants
2023-10-17 22:49:31 +02:00
thyttan
9e978b2c5b
Slider: change to only add required parts
...
... depending on how the slider is configured when initializing.
Assumed to reduce ram use, have not tested to see if it actually is an
improvement in rem use or general performance in practice.
2023-10-17 22:49:31 +02:00
thyttan
94074304dc
Slider: draw directly when starting auto update
...
... if the slider should be drawn. Otherwise will just keep track of
position to draw later.
2023-10-17 22:49:31 +02:00
thyttan
d157f51b50
Slider:add var containing the app to load on error
2023-10-17 22:49:31 +02:00
thyttan
5df5f56888
Slider: hide slider while still auto incrementing
2023-10-17 22:49:31 +02:00
thyttan
5b19330fee
Slider: option to set border size
2023-10-17 22:49:31 +02:00
thyttan
9f7b65892e
Slider: make drawing borders optional
2023-10-17 22:49:31 +02:00
thyttan
873fcca251
Slider: add callback on auto progress
2023-10-17 22:49:31 +02:00
thyttan
c24499df6d
SliderInput: change name to "Slider.js"
2023-10-17 22:49:31 +02:00
thyttan
f10ff2199d
SliderInput: fix inability to initiate w level 0
2023-10-17 22:49:31 +02:00
thyttan
0f9cb53509
SliderInput: add `stopAutoUpdate` function
2023-10-17 22:49:31 +02:00
thyttan
a353fdbc1c
SliderInput: add rectangle object to slider object
2023-10-17 22:49:31 +02:00
thyttan
4ca116aaba
SliderInput: track active drag handler in variable
2023-10-17 22:49:31 +02:00
thyttan
b69274f364
SliderInput: vim auto-format + format tweak
2023-10-17 22:49:31 +02:00
thyttan
7e906ede25
SliderInput:refactor to return obj w funcs & vars
...
... making it possible to interact with the slider reachable in the scope
where the slider was initiated from.
2023-10-17 22:49:31 +02:00
thyttan
53242e8aaf
SliderInput: contain config in an object
2023-10-17 22:49:31 +02:00
thyttan
87a8593b04
SliderInput: add function to auto progress
...
making it possible to track progress in e.g. a song.
2023-10-17 22:49:31 +02:00
thyttan
644d23a511
SliderInput: default graphics depend on appRect
2023-10-17 22:49:31 +02:00
thyttan
a7787abba9
SliderInput: tweaks for showing multiple sliders
2023-10-17 22:49:31 +02:00
thyttan
abfca68abb
SliderInput: fix slider graphics
...
that was a little off after changing from using LCD overlay.
2023-10-17 22:49:31 +02:00
thyttan
c86fd3458b
SliderInput: load test app on load from Web IDE
2023-10-17 22:49:31 +02:00
thyttan
afa7fd91ec
SliderInput: precalculate static rectangles
...
also remove unneeded variable 'levelHeight'
2023-10-17 22:49:31 +02:00
thyttan
ead101bb90
SliderInput: (WIP) fix rotation after refactor
2023-10-17 22:49:31 +02:00
thyttan
604350e328
SliderInput: refactor to not use LCD overlay
2023-10-17 22:49:31 +02:00
thyttan
ffab963837
SliderInput: add horizontal configuration
2023-10-17 22:49:31 +02:00
thyttan
49d8346098
SliderInput: default prevLevel to middle of range.
2023-10-17 22:49:31 +02:00
thyttan
32903324ae
SliderInput: be lazy about running callback funct
...
only run if the sliders level was changed.
2023-10-17 22:49:31 +02:00
thyttan
3c21342a7d
libslider: split and move to modules and test app
2023-10-17 22:49:31 +02:00
Travis Evans
7dfd7dde54
Rename public `btnBorder` and `btnFace` fields to `btnBorderCol` and `btnFaceCol`, respectively
2023-09-14 16:19:45 -05:00
Travis Evans
45f07db370
Fix selected button color on Bangle.js 1
2023-09-14 15:39:50 -05:00
Travis Evans
6b2bcc61ba
Update documentation
2023-09-13 17:41:17 -05:00
Travis Evans
e098d0fc9e
Implement separate colors for button background (face) and “actual” background (outside border)
2023-09-13 17:10:15 -05:00
Gordon Williams
25251646c0
Update minified layout after @nravanelli's PR
2023-09-13 14:01:32 +01:00
Gordon Williams
3fc4522722
fix docs
2023-06-30 13:30:29 +01:00
Gordon Williams
5ae91b90b0
Fix date_utils if timezone is 12.
...
https://forum.espruino.com/conversations/387709/#comment17024817
2023-06-21 10:09:47 +01:00
Gordon Williams
6bdb7dc0ad
Fix widgets that clear too low, and make widget swipeOn have a 2px border at the bottom
2023-06-09 11:04:06 +01:00
Gordon Williams
2b6f7765cc
Fix buzz.js - whenever called this used to keep firing an interval every 100ms, and they would build up!
2023-06-08 19:26:12 +01:00
Gordon Williams
625f31c8d4
0.16: Added ability to resume a run that was stopped previously ( fix #1907 )
2023-05-19 16:16:19 +01:00
Gordon Williams
6084c2b9ad
Fix issue with widget utils - just a single hidden widget would cancel checking others
2023-05-10 12:05:30 +01:00
Gordon Williams
5ebb56e950
run: Keep run state between runs (allowing you to exit and restart the app)
2023-02-23 11:00:06 +00:00
Gordon Williams
de40f314c7
Moved clock_info to a module
2023-01-27 13:33:46 +00:00
Gabriele Monaco
4d670d0fde
quicklaunch: do not react if clkinfo is focused
2023-01-25 15:23:24 +01:00
Gordon Williams
4006155ac9
Merge pull request #2515 from nravanelli/master
...
Updated Layout.js
2023-01-23 09:15:44 +00:00
Gordon Williams
60f3312771
Merge pull request #2521 from glemco/master
...
Some changes to the clkinfo
2023-01-23 09:04:51 +00:00
Martin Boonk
bf5c44c922
graphics_utils - Use correct parameter variable
2023-01-22 10:06:32 +01:00
Martin Boonk
7fb4c6f786
graphics_utils - Set a default step allowing a full circle arc
2023-01-22 10:06:32 +01:00
Gabriele Monaco
9ec805c67a
clkinfo: added altitude ranges and unfocus on lock
2023-01-21 08:02:31 +01:00
nravanelli
e68c526a3e
Update Layout.js
2023-01-20 23:54:13 -05:00
nravanelli
f01202ef4a
Update Layout.md
...
defined `bgCol` for when used on a `type:"btn"`
2023-01-20 22:51:20 -05:00
nravanelli
9e8a44dca6
Update Layout.js
...
fixed "fat finger" error in copy/paste from local code; Line 193; l.btnBorder
removed btnCol and replaced to bgCol, which is typically ignored in the type:btn
2023-01-20 22:49:22 -05:00
Gabriele Monaco
605916ae0a
Fixed stepGoal json path in clkinfo
2023-01-20 15:28:53 +01:00
nravanelli
a37bfcc9c1
Update Layout.md
2023-01-19 13:11:34 -05:00
nravanelli
a725dc7a78
Update Layout.js
...
added functionality for button colour specifications
2023-01-19 13:09:35 -05:00
Gordon Williams
150e79e11d
Merge pull request #2497 from sir-indy/master
...
[mosaic][fuzzyw] Update for fast launch, and optionally hide widgets with widget_utils
2023-01-18 09:06:16 +00:00
sir-indy
915b562026
Add drawWidgets to end of swipeOn
...
Trying to fix https://github.com/espruino/BangleApps/issues/2474 .
2023-01-17 08:54:47 +00:00
Gabriele Monaco
0cc4e318f8
weather: redraw clock_info on update and provide color field
2023-01-13 19:36:19 +01:00
David Peer
6774bc113c
Merge branch 'master' of https://github.com/peerdavid/BangleApps
2023-01-09 18:12:53 +01:00
David Peer
6fc98b723a
Buzz on run()
2023-01-09 18:12:51 +01:00
Gordon Williams
3ba8f7729e
Fix layout error when there's not a h or v element as root - https://forum.espruino.com/conversations/382806/#comment16819463
2023-01-09 14:21:27 +00:00
BartS23
be956095c1
missing options update
2023-01-09 14:39:19 +01:00
BartS23
db17b225d0
add setItem to clock_info
2023-01-09 14:33:52 +01:00
Richard de Boer
fe61fd2a12
ClockFace: remove clockHasWidgets hack
...
Added in 1d4fb1301a
to make fast loading
work correctly (workaround for the fact that ClockFace clocks contained
`loadWidgets` in their source, but sometimes didn't call it)
No longer needed, as we now always call loadWidgets.
2023-01-07 17:52:31 +01:00
Richard de Boer
6980a0d9c9
ClockFace: always loadWidgets, option to hide them using widget_utils
2023-01-07 16:50:30 +01:00
thyttan
5fd3424764
shorten the error variable
2022-12-27 20:16:58 +01:00
thyttan
914d2f15d9
Catch error when Bangle.getPressure() returns...
...
... undefined. This makes it so BW Clock doesn't hang when running in the emulator and is trying to display altitude.
2022-12-25 19:21:07 +01:00
Gordon Williams
93a4fc248c
Merge pull request #2415 from halemmerich/choozi
...
Choozi - Recombine app files and some improvements
2022-12-19 12:15:41 +00:00
Martin Boonk
36557e4f5e
choozi - Rename drawArc to fillArc
2022-12-19 13:01:28 +01:00
Martin Boonk
d8543f4d41
choozi - Fix library not working standalone
2022-12-19 12:52:33 +01:00
Gordon Williams
285b03dbb9
Ensure that widgets_utils swipeOn falls back on Bangle.js 1 - fix #2414
2022-12-19 09:18:45 +00:00
Martin Boonk
f467227d8d
choozi - Extract drawing of arcs into lib for others to use
2022-12-18 22:08:07 +01:00
Gabriele Monaco
1fb5c0433d
clkinfo: repeating selection if menu is empty
2022-12-15 20:15:40 +01:00
Gordon Williams
dcefe4b393
Update clock_info's heart rate handling to ensure the HRM value is up to date
2022-12-14 09:33:03 +00:00
Gordon Williams
a0a3b5c66e
Merge pull request #2384 from rigrig/clockface-really-remove
...
ClockFace: fix fast loading
2022-12-12 08:58:12 +00:00
Erik Andresen
90b68051c5
astrocalc
...
- Compatibility with Bangle.js 2
- Get location from My Location
2022-12-11 22:09:16 +01:00
Richard de Boer
825a705339
ClockFace: fix fast loading
2022-12-11 15:15:44 +01:00
Gordon Williams
00a022c7c1
Use 'modules/suncalc.js' to avoid it being copied 8 times for different apps
2022-12-09 09:49:33 +00:00
Gordon Williams
341517881b
update docs to put the best solution at the top
2022-12-06 09:41:54 +00:00
Gordon Williams
4249f6397e
Merge pull request #2349 from peerdavid/master
...
[AIClock] Added clkinfos
2022-12-05 10:01:54 +00:00
Martin Boonk
141eb9b90b
widget_utils - Allow setting a time for auto hideout
2022-12-04 20:26:18 +01:00
David Peer
fa70e5354c
aiclock -- support clkinfo module and updated icons of some clkinfos...
2022-12-04 16:42:24 +01:00
Gordon Williams
e665d35f56
Merge pull request #2331 from halemmerich/layout
...
layout - Allow providing a remove handler in options
2022-12-01 10:06:20 +00:00
Richard de Boer
1d4fb1301a
ClockFace: support Fast Loading, by adding a remove() function to clocks
2022-12-01 01:13:34 +01:00