Skip to content

Commit e8aee92

Browse files
authored
Merge pull request #3968 from bobrippling/feat/clock-uiredraw
anton/slope clocks: pass `redraw` to allow `Bangle.uiRedraw()`
2 parents 1d828a3 + c8eec1a commit e8aee92

File tree

9 files changed

+14
-6
lines changed

9 files changed

+14
-6
lines changed

apps/antonclk/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
0.10: Use Bangle.setUI({remove:...}) to allow loading the launcher without a full reset on 2v16
1515
0.11: Moved enhanced Anton clock to 'Anton Clock Plus' and stripped this clock back down to make it faster for new users (270ms -> 170ms)
1616
Modified to avoid leaving functions defined when using setUI({remove:...})
17+
0.12: Pass in `redraw` to allow `Bangle.uiRedraw()` to redraw the clock

apps/antonclk/app.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/antonclk/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "antonclk",
33
"name": "Anton Clock",
4-
"version": "0.11",
4+
"version": "0.12",
55
"description": "A simple clock using the bold Anton font. See `Anton Clock Plus` for an enhanced version",
66
"icon": "app.png",
77
"screenshots": [{"url":"screenshot.png"}],

apps/antonclkplus/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
0.10: Use Bangle.setUI({remove:...}) to allow loading the launcher without a full reset on 2v16
1515
Modified to avoid leaving functions defined when using setUI({remove:...})
1616
0.11: Minor code improvements
17+
0.12: Pass in `redraw` to allow `Bangle.uiRedraw()` to redraw the clock

apps/antonclkplus/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ Bangle.setUI({
231231
drawTimeout = undefined;
232232
delete Graphics.prototype.setFontAnton;
233233
delete Graphics.prototype.setFontAntonSmall;
234-
}});
234+
},
235+
redraw: draw,
236+
});
235237
// Load widgets
236238
Bangle.loadWidgets();
237239
Bangle.drawWidgets();

apps/antonclkplus/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "antonclkplus",
33
"name": "Anton Clock Plus",
44
"shortName": "Anton Clock+",
5-
"version": "0.11",
5+
"version": "0.12",
66
"description": "A clock using the bold Anton font, optionally showing seconds and date in ISO-8601 format.",
77
"readme":"README.md",
88
"icon": "app.png",

apps/slopeclockpp/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
0.09: Use clock_info module as an app
1313
0.10: Option to hide widgets, tweak top widget width to avoid overlap with hour text at 9am
1414
0.11: Avoid rendering clkinfo in the same colour as the background
15+
0.12: Pass in `redraw` to allow `Bangle.uiRedraw()` to redraw the clock

apps/slopeclockpp/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ Bangle.setUI({
169169
delete clockInfoMenu;
170170
clockInfoMenu2.remove();
171171
delete clockInfoMenu2;
172-
}
172+
},
173+
redraw: draw,
173174
});
174175
// Load widgets
175176
Bangle.loadWidgets();

apps/slopeclockpp/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ "id": "slopeclockpp",
22
"name": "Slope Clock ++",
3-
"version":"0.11",
3+
"version":"0.12",
44
"description": "A clock where hours and minutes are divided by a sloping line. When the minute changes, the numbers slide off the screen. This is a clone of the original Slope Clock which shows extra information and allows the colors to be selected.",
55
"icon": "app.png",
66
"screenshots": [{"url":"screenshot.png"}],

0 commit comments

Comments
 (0)