If you've been writing Bangle.js apps, one thing you might have noticed is the need to hard-code a 24px gap at the top of the screen for the widget bar (there's also potentially 24px at the bottom for widgets but few things use this).
This has been annoying me, because I'm pretty sure some people would like the ability to have a bigger (or smaller) widget bar (or even to relocate it completely) - and that'd be perfectly easy to do by installing something that replaced Bangle.drawWidgets.
It's just that apps have no way of knowing what area they're expected to draw in.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi!
If you've been writing Bangle.js apps, one thing you might have noticed is the need to hard-code a 24px gap at the top of the screen for the widget bar (there's also potentially 24px at the bottom for widgets but few things use this).
This has been annoying me, because I'm pretty sure some people would like the ability to have a bigger (or smaller) widget bar (or even to relocate it completely) - and that'd be perfectly easy to do by installing something that replaced
Bangle.drawWidgets
.It's just that apps have no way of knowing what area they're expected to draw in.
So I'm thinking something like:
Would make a lot of sense?
Any thoughts? What about a name? Part of me thinks it should be as short as possible - like
Bangle.appRect