Yes, it's totally possible to change the widget positions!
First method is just to use require("widget_utils").swipeOn() which will allow you to swipe the widgets down from the top. It's used in a few clocks now and is nice and easy.
Second method is just to change the 'area' of widgets and set the position manually. You could do this once, but some widgets start off with width=0 and change (maybe when a message is received).
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.
Thanks - glad you're enjoying it!
Yes, it's totally possible to change the widget positions!
First method is just to use
require("widget_utils").swipeOn()
which will allow you to swipe the widgets down from the top. It's used in a few clocks now and is nice and easy.Second method is just to change the 'area' of widgets and set the position manually. You could do this once, but some widgets start off with width=0 and change (maybe when a message is received).
drawWidgets
itself looks like https://github.com/espruino/Espruino/blob/master/libs/js/banglejs/Bangle_drawWidgets_Q3.js so if you don't have the area astl/tr/bl/br
it'll skip setting a position but will render them anyway. All you need to do is add your owndrawWidgets
implementation that runs first and sets the position up yourself.For example: