mirror of https://github.com/espruino/BangleApps
Clock apps tell clock widgets to hide #2
parent
61ad67d32e
commit
395be5a65d
|
@ -5,3 +5,4 @@
|
||||||
0.04: Modified to account for changes in the behavior of Graphics.fillPoly
|
0.04: Modified to account for changes in the behavior of Graphics.fillPoly
|
||||||
0.05: Slight increase to draw speed after LCD on
|
0.05: Slight increase to draw speed after LCD on
|
||||||
0.06: Update to use Bangle.setUI instead of setWatch, allow themes and different size screens
|
0.06: Update to use Bangle.setUI instead of setWatch, allow themes and different size screens
|
||||||
|
0.07: Tell clock widgets to hide.
|
||||||
|
|
|
@ -99,6 +99,10 @@ function startTimers() {
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
intervalRef = setInterval(redraw,1000);
|
intervalRef = setInterval(redraw,1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show launcher when button pressed
|
||||||
|
Bangle.setUI("clock");
|
||||||
|
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
startTimers();
|
startTimers();
|
||||||
Bangle.on('lcdPower',function(on) {
|
Bangle.on('lcdPower',function(on) {
|
||||||
|
@ -108,5 +112,3 @@ Bangle.on('lcdPower',function(on) {
|
||||||
clearTimers();
|
clearTimers();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Show launcher when button pressed
|
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "blobclk",
|
"id": "blobclk",
|
||||||
"name": "Large Digit Blob Clock",
|
"name": "Large Digit Blob Clock",
|
||||||
"shortName": "Blob Clock",
|
"shortName": "Blob Clock",
|
||||||
"version": "0.06",
|
"version": "0.07",
|
||||||
"description": "A clock with big digits",
|
"description": "A clock with big digits",
|
||||||
"icon": "clock-blob.png",
|
"icon": "clock-blob.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
0.04: Work with themes, smaller screens
|
0.04: Work with themes, smaller screens
|
||||||
0.05: Adjust hand lengths to be within 'tick' points
|
0.05: Adjust hand lengths to be within 'tick' points
|
||||||
0.06: Removed "wake LCD on face-up"-feature: A watch-face should not set things like "wake LCD on face-up".
|
0.06: Removed "wake LCD on face-up"-feature: A watch-face should not set things like "wake LCD on face-up".
|
||||||
|
0.07: Tell clock widgets to hide.
|
||||||
|
|
|
@ -130,9 +130,10 @@ Bangle.on('lcdPower', (on) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Show launcher when button pressed
|
||||||
|
Bangle.setUI("clock");
|
||||||
|
|
||||||
g.clear();
|
g.clear();
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
startTimers();
|
startTimers();
|
||||||
// Show launcher when button pressed
|
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "boldclk",
|
"id": "boldclk",
|
||||||
"name": "Bold Clock",
|
"name": "Bold Clock",
|
||||||
"version": "0.06",
|
"version": "0.07",
|
||||||
"description": "Simple, readable and practical clock",
|
"description": "Simple, readable and practical clock",
|
||||||
"icon": "bold_clock.png",
|
"icon": "bold_clock.png",
|
||||||
"screenshots": [{"url":"screenshot_bold.png"}],
|
"screenshots": [{"url":"screenshot_bold.png"}],
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: Initial version
|
0.01: Initial version
|
||||||
0.02: More compact rendering & app icon
|
0.02: More compact rendering & app icon
|
||||||
|
0.03: Tell clock widgets to hide.
|
||||||
|
|
|
@ -114,6 +114,6 @@ g.clear();
|
||||||
fullRedraw();
|
fullRedraw();
|
||||||
var minuteInterval = setInterval(redraw, 60 * 1000);
|
var minuteInterval = setInterval(redraw, 60 * 1000);
|
||||||
|
|
||||||
|
Bangle.setUI("clock");
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "calclock",
|
"id": "calclock",
|
||||||
"name": "Calendar Clock",
|
"name": "Calendar Clock",
|
||||||
"shortName": "CalClock",
|
"shortName": "CalClock",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "Show the current and upcoming events synchronized from Gadgetbridge",
|
"description": "Show the current and upcoming events synchronized from Gadgetbridge",
|
||||||
"icon": "calclock.png",
|
"icon": "calclock.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -9,3 +9,4 @@
|
||||||
0.8: Update Some Variable Scopes to not use memory until need
|
0.8: Update Some Variable Scopes to not use memory until need
|
||||||
0.9: Remove ESLint spaces
|
0.9: Remove ESLint spaces
|
||||||
0.10: Show daily steps, heartrate and the temperature if weather information is available.
|
0.10: Show daily steps, heartrate and the temperature if weather information is available.
|
||||||
|
0.11: Tell clock widgets to hide.
|
||||||
|
|
|
@ -165,10 +165,10 @@ Bangle.on("lock", (locked) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Bangle.setUI("clock");
|
||||||
|
|
||||||
// Load widgets, but don't show them
|
// Load widgets, but don't show them
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
||||||
g.reset();
|
g.reset();
|
||||||
g.clear();
|
g.clear();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "Animated Clock with Space Cassio Watch Style",
|
"description": "Animated Clock with Space Cassio Watch Style",
|
||||||
"screenshots": [{ "url": "screens/screen_night.png" },{ "url": "screens/screen_day.png" }],
|
"screenshots": [{ "url": "screens/screen_night.png" },{ "url": "screens/screen_day.png" }],
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version": "0.10",
|
"version": "0.11",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock, weather, cassio, retro",
|
"tags": "clock, weather, cassio, retro",
|
||||||
"supports": ["BANGLEJS2"],
|
"supports": ["BANGLEJS2"],
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
0.03: Configurable drag gestures
|
0.03: Configurable drag gestures
|
||||||
0.04: Use default Bangle formatter for booleans
|
0.04: Use default Bangle formatter for booleans
|
||||||
0.05: Improved colors (connected vs disconnected)
|
0.05: Improved colors (connected vs disconnected)
|
||||||
|
0.06: Tell clock widgets to hide.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
Bangle.setUI("clock");
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
|
|
||||||
var s = Object.assign({
|
var s = Object.assign({
|
||||||
|
@ -307,4 +308,4 @@ NRF.on('disconnect', BTevent);
|
||||||
|
|
||||||
dimSeconds = Bangle.isLocked();
|
dimSeconds = Bangle.isLocked();
|
||||||
drawWatch();
|
drawWatch();
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "clockcal",
|
"id": "clockcal",
|
||||||
"name": "Clock & Calendar",
|
"name": "Clock & Calendar",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "Clock with Calendar",
|
"description": "Clock with Calendar",
|
||||||
"readme":"README.md",
|
"readme":"README.md",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -242,6 +242,6 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Bangle.loadWidgets();
|
|
||||||
|
|
||||||
Bangle.setUI('clock');
|
Bangle.setUI('clock');
|
||||||
|
|
||||||
|
Bangle.loadWidgets();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "colorful_clock",
|
{ "id": "colorful_clock",
|
||||||
"name": "Colorful Analog Clock",
|
"name": "Colorful Analog Clock",
|
||||||
"shortName":"Colorful Clock",
|
"shortName":"Colorful Clock",
|
||||||
"version":"0.03",
|
"version":"0.04",
|
||||||
"description": "a colorful analog clock",
|
"description": "a colorful analog clock",
|
||||||
"icon": "app-icon.png",
|
"icon": "app-icon.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
...
|
...
|
||||||
0.02: First update with ChangeLog Added
|
0.02: First update with ChangeLog Added
|
||||||
|
0.03: Tell clock widgets to hide.
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
let ScreenWidth = g.getWidth(), CenterX;
|
let ScreenWidth = g.getWidth(), CenterX;
|
||||||
let ScreenHeight = g.getHeight(), CenterY, outerRadius;
|
let ScreenHeight = g.getHeight(), CenterY, outerRadius;
|
||||||
|
|
||||||
|
Bangle.setUI('clock');
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
|
|
||||||
/**** updateClockFaceSize ****/
|
/**** updateClockFaceSize ****/
|
||||||
|
@ -1377,4 +1378,3 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Bangle.setUI('clock');
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "configurable_clock",
|
{ "id": "configurable_clock",
|
||||||
"name": "Configurable Analog Clock",
|
"name": "Configurable Analog Clock",
|
||||||
"shortName":"Configurable Clock",
|
"shortName":"Configurable Clock",
|
||||||
"version":"0.02",
|
"version":"0.03",
|
||||||
"description": "an analog clock with several kinds of faces, hands and colors to choose from",
|
"description": "an analog clock with several kinds of faces, hands and colors to choose from",
|
||||||
"icon": "app-icon.png",
|
"icon": "app-icon.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
0.02: Removed "wake LCD on face-up"-feature: A watch-face should not set things like "wake LCD on face-up".
|
0.02: Removed "wake LCD on face-up"-feature: A watch-face should not set things like "wake LCD on face-up".
|
||||||
0.03: Fix the clock for dark mode.
|
0.03: Fix the clock for dark mode.
|
||||||
|
0.04: Tell clock widgets to hide.
|
||||||
|
|
|
@ -136,9 +136,9 @@ Bangle.on('lcdPower', (on) => {
|
||||||
g.clear();
|
g.clear();
|
||||||
|
|
||||||
|
|
||||||
|
// Show launcher when button pressed
|
||||||
|
Bangle.setUI("clock");
|
||||||
|
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
startTimers();
|
startTimers();
|
||||||
// Show launcher when button pressed
|
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "crowclk",
|
"id": "crowclk",
|
||||||
"name": "Crow Clock",
|
"name": "Crow Clock",
|
||||||
"version": "0.03",
|
"version": "0.04",
|
||||||
"description": "A simple clock based on Bold Clock that has MST3K's Crow T. Robot for a face",
|
"description": "A simple clock based on Bold Clock that has MST3K's Crow T. Robot for a face",
|
||||||
"icon": "crow_clock.png",
|
"icon": "crow_clock.png",
|
||||||
"screenshots": [{"url":"screenshot_crow.png"}],
|
"screenshots": [{"url":"screenshot_crow.png"}],
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: First published version of app
|
0.01: First published version of app
|
||||||
0.02: Move to Bangle.setUI to launcher support
|
0.02: Move to Bangle.setUI to launcher support
|
||||||
|
0.03: Tell clock widgets to hide.
|
||||||
|
|
|
@ -173,6 +173,9 @@ const drawHR = function () {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Show launcher when button pressed
|
||||||
|
Bangle.setUI("clock");
|
||||||
|
|
||||||
// clean app screen
|
// clean app screen
|
||||||
g.clear();
|
g.clear();
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
|
@ -198,6 +201,3 @@ Bangle.on('HRM', function (d) {
|
||||||
|
|
||||||
// draw now
|
// draw now
|
||||||
drawClock();
|
drawClock();
|
||||||
|
|
||||||
// Show launcher when button pressed
|
|
||||||
Bangle.setUI("clock");
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "fclock",
|
"id": "fclock",
|
||||||
"name": "fclock",
|
"name": "fclock",
|
||||||
"shortName": "F Clock",
|
"shortName": "F Clock",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "Simple design of a digital clock",
|
"description": "Simple design of a digital clock",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
Loading…
Reference in New Issue