1
0
Fork 0

cogclock: Support Bangle.js 2

Very tight, but it looks acceptable with hidden widgets.
Not defaulting the settingto hiding widgets though, to avoid code clutter.
master
Richard de Boer 2023-04-27 15:19:46 +02:00
parent d8ba658769
commit d2875ba38b
No known key found for this signature in database
5 changed files with 5 additions and 4 deletions

View File

@ -2,3 +2,4 @@
0.02: Use ClockFace library, add settings
0.03: Use ClockFace_menu.addSettingsFile
0.04: Hide widgets instead of not loading them at all
0.05: Support Bangle.js 2

View File

@ -44,7 +44,7 @@ const clock = new ClockFace({
precision: 1,
settingsFile: "cogclock.settings.json",
init: function() {
this.r1 = 84; // inner radius
this.r1 = (process.env.HWVERSION>1) ? 68 : 84; // inner radius
this.r3 = Math.min(Bangle.appRect.w/2, Bangle.appRect.h/2); // outer radius
this.r2 = (this.r1*3+this.r3*2)/5;
this.teeth = 12;

View File

@ -1,13 +1,13 @@
{
"id": "cogclock",
"name": "Cog Clock",
"version": "0.04",
"version": "0.05",
"description": "A cross-shaped clock inside a cog",
"icon": "icon.png",
"screenshots": [{"url":"screenshot.png"}],
"screenshots": [{"url":"screenshot_b1.png"},{"url":"screenshot_b2.png"}],
"type": "clock",
"tags": "clock",
"supports": ["BANGLEJS"],
"supports": ["BANGLEJS","BANGLEJS2"],
"allow_emulator": true,
"storage": [
{"name":"cogclock.app.js","url":"app.js"},

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB