• 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:

    >print(Bangle.getAppRect())
    ={x:0,y:24,w:176,h:152}
    

    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

About

Avatar for Gordon @Gordon started