mirror of https://github.com/espruino/BangleApps
load widgets and hide them
parent
e01e08db22
commit
ef74a18566
|
@ -8,5 +8,4 @@
|
||||||
0.08: Force background of widget field to the torch colour
|
0.08: Force background of widget field to the torch colour
|
||||||
0.09: Change code taking FW tweaks into account
|
0.09: Change code taking FW tweaks into account
|
||||||
0.10: Introduce fast switching.
|
0.10: Introduce fast switching.
|
||||||
0.11: Make compatible with Fastload Utils by loading widgets. No change if
|
0.11: Make compatible with Fastload Utils by loading and hiding widgets.
|
||||||
Fastload Utils is not installed.
|
|
||||||
|
|
|
@ -20,11 +20,8 @@
|
||||||
g.setTheme({bg:settings.bg,fg:"#000"});
|
g.setTheme({bg:settings.bg,fg:"#000"});
|
||||||
g.setColor(settings.bg);
|
g.setColor(settings.bg);
|
||||||
g.fillRect(0,0,g.getWidth(),g.getHeight());
|
g.fillRect(0,0,g.getWidth(),g.getHeight());
|
||||||
if (s.read('fastload.cache')!==undefined) {
|
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
if (process.env.HWVERSION==1) wu.hide();
|
wu.hide();
|
||||||
if (process.env.HWVERSION==2) wu.swipeOn();
|
|
||||||
}
|
|
||||||
Bangle.setUI({
|
Bangle.setUI({
|
||||||
mode : 'custom',
|
mode : 'custom',
|
||||||
back : Bangle.showClock, // B2: SW back button to exit
|
back : Bangle.showClock, // B2: SW back button to exit
|
||||||
|
@ -37,4 +34,3 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue