mirror of https://github.com/espruino/BangleApps
Simplest: tweak filenames
parent
9a9625c112
commit
1374f48e63
|
@ -4,3 +4,4 @@
|
||||||
0.04: Use queueDraw(), update every minute, respect theme, use Lato font
|
0.04: Use queueDraw(), update every minute, respect theme, use Lato font
|
||||||
0.05: Decided against custom font as it inceases the code size
|
0.05: Decided against custom font as it inceases the code size
|
||||||
minimalism is useful when narrowing down issues
|
minimalism is useful when narrowing down issues
|
||||||
|
0.06: renamed some files
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "simplest",
|
"id": "simplest",
|
||||||
"name": "Simplest Clock",
|
"name": "Simplest Clock",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "The simplest working clock, acts as a tutorial piece",
|
"description": "The simplest working clock, acts as a tutorial piece",
|
||||||
"icon": "simplest.png",
|
"icon": "simplest.png",
|
||||||
"screenshots": [{"url":"screenshot_simplest.png"}],
|
"screenshots": [{"url":"screenshot_simplest.png"}],
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
"supports": ["BANGLEJS","BANGLEJS2"],
|
"supports": ["BANGLEJS","BANGLEJS2"],
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"simplest.app.js","url":"app.js"},
|
{"name":"simplest.app.js","url":"simplest.app.js"},
|
||||||
{"name":"simplest.img","url":"icon.js","evaluate":true}
|
{"name":"simplest.img","url":"simplest.icon.js","evaluate":true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ function draw() {
|
||||||
g.setFontAlign(0, 0);
|
g.setFontAlign(0, 0);
|
||||||
g.setColor(g.theme.fg);
|
g.setColor(g.theme.fg);
|
||||||
g.drawString(timeStr, w/2, h/2);
|
g.drawString(timeStr, w/2, h/2);
|
||||||
|
|
||||||
queueDraw();
|
queueDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,13 +41,12 @@ Bangle.on('lcdPower',on=>{
|
||||||
g.clear();
|
g.clear();
|
||||||
|
|
||||||
// Show launcher when middle button pressed
|
// Show launcher when middle button pressed
|
||||||
//Bangle.setUI("clock");
|
// Bangle.setUI("clock");
|
||||||
// use clockupdown as it tests for issue #1249
|
// use clockupdown as it tests for issue #1249
|
||||||
Bangle.setUI("clockupdown", btn=> {
|
Bangle.setUI("clockupdown", btn=> {
|
||||||
draw();
|
draw();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Load widgets
|
// Load widgets
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
Loading…
Reference in New Issue