Hello! I'm trying to add a fullscreen mode to the default Launcher. The code is in this branch and it works. I'll send a PR to upstream later.
I noticed that other fullscreen apps load the widgets overriding the draw method using this code:
for (let wd of WIDGETS) { wd.draw = () => {}; wd.area = ""; }
I like the idea so I updated the code:
Bangle.loadWidgets(); if (settings.fullscreen) { for (let wd of WIDGETS) { wd.draw = () => {}; wd.area = ""; } } else { Bangle.drawWidgets(); }
I did some tests: the fullscreen mode works but I don't receive the notifications. The same approach works in other apps (like the Pebble Clock).
Am I missing something?
Thank you :-)
@Alessandro started
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.
Hello!
I'm trying to add a fullscreen mode to the default Launcher. The code is in this branch and it works. I'll send a PR to upstream later.
I noticed that other fullscreen apps load the widgets overriding the draw method using this code:
I like the idea so I updated the code:
I did some tests: the fullscreen mode works but I don't receive the notifications. The same approach works in other apps (like the Pebble Clock).
Am I missing something?
Thank you :-)