Clock apps tell clock widgets to hide #4

pull/2113/head
thyttan 2022-09-06 21:27:02 +02:00
parent 0d2093a134
commit 7b1058e537
16 changed files with 22 additions and 15 deletions

0
apps/isoclock/checkout Normal file
View File

View File

@ -2,3 +2,4 @@
0.02: Improve battery life, sprite resolution, fix launcher issue and unaligned text bug 0.02: Improve battery life, sprite resolution, fix launcher issue and unaligned text bug
0.03: Reduce code size, refresh once a minute and faster refresh 0.03: Reduce code size, refresh once a minute and faster refresh
0.04: Show a random kana every minute to improve learning 0.04: Show a random kana every minute to improve learning
0.05: Tell clock widgets to hide.

View File

@ -264,10 +264,10 @@ Bangle.on('touch', function (tap, top) {
}); });
g.clear(true); g.clear(true);
// show launcher when button pressed
Bangle.setUI('clock');
Bangle.loadWidgets(); Bangle.loadWidgets();
tickWatch(); tickWatch();
setInterval(tickWatch, 1000 * 60); setInterval(tickWatch, 1000 * 60);
// show launcher when button pressed
Bangle.setUI('clock');

View File

@ -2,7 +2,7 @@
"id": "kanawatch", "id": "kanawatch",
"name": "Kanawatch", "name": "Kanawatch",
"shortName": "Kanawatch", "shortName": "Kanawatch",
"version": "0.04", "version": "0.05",
"type": "clock", "type": "clock",
"description": "Learn Hiragana and Katakana", "description": "Learn Hiragana and Katakana",
"icon": "app.png", "icon": "app.png",

View File

@ -4,3 +4,4 @@
0.04: Removed "wake LCD on face-up"-feature: A watch-face should not set things like "wake LCD on face-up". 0.04: Removed "wake LCD on face-up"-feature: A watch-face should not set things like "wake LCD on face-up".
0.05: Added support to other color themes (other then black) 0.05: Added support to other color themes (other then black)
0.06: Added support for 24 hour clock enabled from settings 0.06: Added support for 24 hour clock enabled from settings
0.07: Tell clock widgets to hide.

View File

@ -328,11 +328,9 @@ Bangle.on('lcdPower', (on) => {
} }
}); });
Bangle.setUI("clock");
g.clear(); g.clear();
Bangle.loadWidgets(); Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();
startTimers(); startTimers();
Bangle.setUI("clock");

View File

@ -1,7 +1,7 @@
{ {
"id": "matrixclock", "id": "matrixclock",
"name": "Matrix Clock", "name": "Matrix Clock",
"version": "0.06", "version": "0.07",
"description": "inspired by The Matrix, a clock of the same style", "description": "inspired by The Matrix, a clock of the same style",
"icon": "matrixclock.png", "icon": "matrixclock.png",
"screenshots": [{"url":"matrix_green_on_black.jpg"}], "screenshots": [{"url":"matrix_green_on_black.jpg"}],

View File

@ -2,3 +2,4 @@
0.03: Localization 0.03: Localization
0.04: move jshint to the top 0.04: move jshint to the top
0.05: Use Bangle.setUI for button/launcher handling 0.05: Use Bangle.setUI for button/launcher handling
0.06: Tell clock widgets to hide.

View File

@ -77,11 +77,13 @@ Bangle.on('lcdPower', function(on) {
drawMixedClock(); drawMixedClock();
}); });
// Show launcher when button pressed
Bangle.setUI("clock");
g.clear(); g.clear();
Bangle.loadWidgets(); Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();
setInterval(drawMixedClock, 5E3); setInterval(drawMixedClock, 5E3);
drawMixedClock(); drawMixedClock();
// Show launcher when button pressed
Bangle.setUI("clock");

View File

@ -1,7 +1,7 @@
{ {
"id": "miclock", "id": "miclock",
"name": "Mixed Clock", "name": "Mixed Clock",
"version": "0.05", "version": "0.06",
"description": "A mix of analog and digital Clock", "description": "A mix of analog and digital Clock",
"icon": "clock-mixed.png", "icon": "clock-mixed.png",
"type": "clock", "type": "clock",

View File

@ -1,2 +1,3 @@
... ...
0.03: First update with ChangeLog Added 0.03: First update with ChangeLog Added
0.04: Tell clock widgets to hide.

View File

@ -225,6 +225,6 @@
} }
}); });
Bangle.loadWidgets();
Bangle.setUI('clock'); Bangle.setUI('clock');
Bangle.loadWidgets();

View File

@ -1,7 +1,7 @@
{ "id": "minimal_clock", { "id": "minimal_clock",
"name": "Minimal Analog Clock", "name": "Minimal Analog Clock",
"shortName":"Minimal Clock", "shortName":"Minimal Clock",
"version":"0.03", "version":"0.04",
"description": "a minimal analog clock - just with some hands and no clock face", "description": "a minimal analog clock - just with some hands and no clock face",
"icon": "app-icon.png", "icon": "app-icon.png",
"type": "clock", "type": "clock",

View File

@ -3,3 +3,4 @@
0.03: Fixed rendering for Espruino v2.06 0.03: Fixed rendering for Espruino v2.06
0.04: Fixed overlapped rendering of dates 0.04: Fixed overlapped rendering of dates
0.05: Use Bangle.setUI for button/launcher handling 0.05: Use Bangle.setUI for button/launcher handling
0.06: Tell clock widgets to hide.

0
apps/minionclk/app Normal file
View File

View File

@ -78,8 +78,10 @@ Bangle.on('lcdPower', (on) => {
} }
}); });
// Show launcher when button pressed
Bangle.setUI("clock");
Bangle.loadWidgets(); Bangle.loadWidgets();
startDrawing(); startDrawing();
// Show launcher when button pressed
Bangle.setUI("clock");