add screenshots, fix icons and tidy up
parent
df734b9f6d
commit
51a3872e28
|
|
@ -4,14 +4,10 @@
|
||||||
|
|
||||||
* inspired from the abstract face of the google smartwatch
|
* inspired from the abstract face of the google smartwatch
|
||||||
* second hand (only on unlocked screen)
|
* second hand (only on unlocked screen)
|
||||||
* date
|
|
||||||
* battery percentage (showing charge status with color)
|
|
||||||
* turned off or swipeable widgets (choose in settings)
|
* turned off or swipeable widgets (choose in settings)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
* whether to load widgets, or not; if widgets are loaded, they are swipeable from the top; if not, NO ACTIONS of widgets are available
|
* whether to load widgets, or not; if widgets are loaded, they are swipeable from the top; if not, NO ACTIONS of widgets are available
|
||||||
* date and battery can be printed both below hands (as if hands were physical) and above (more readable)
|
|
||||||
* hour hand can be made slighly shorter to improve readability when minute hand is behind a number
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
// ----- const -----
|
// ----- const -----
|
||||||
|
|
||||||
const defaultSettings = {
|
const defaultSettings = {
|
||||||
loadWidgets : false,
|
loadWidgets: false
|
||||||
textAboveHands : false,
|
|
||||||
shortHrHand : false,
|
|
||||||
show24HourMode : false
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const settings = Object.assign(defaultSettings, require('Storage').readJSON('cc_abstract.json', 1) || {});
|
const settings = Object.assign(defaultSettings, require('Storage').readJSON('cc_abstract.json', 1) || {});
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
require("heatshrink").decompress(atob("mEwgIEBoUAiAKCgUCBQUEColEAYUQhAmKCwgeCAAcCgEDjwEBkEAg8TBocNgYFDh8GAYMDxkPjEA8EAwkHJgIcBAoPfAoYWCBYYFIgfvAoX4FYRJEAp9gAomYNAOAArPwAogAC4AFiRoIFJLgIFJuADCg//Q4U//4FDj4FEAAV4Aoi0CSxBsCA=="))
|
require("heatshrink").decompress(atob("mEw4X/AoOuuf3gswwgcQgILKgfAHydQAgcFBYvQAgcHM60CBZUKoALKC5UoBZUgAgdwBo8NNIxtKAH4AfgWAAwkMTAiNEnkcCwgLEigWEgOQFpLIJYwOgBZFgb5VgCxMAlSLsfZdwBY8NcP4ALKokHBZRpCACMB4ALVAAwA="))
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 592 B |
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 KiB |
|
|
@ -1,18 +1,17 @@
|
||||||
{ "id": "cc_abstract",
|
{ "id": "cc_abstract",
|
||||||
"name": "CC Abstract",
|
"name": "CC Abstract",
|
||||||
"shortName":"CC-Abstract",
|
"shortName": "CC-Abstract",
|
||||||
"version":"0.01",
|
"version": "0.01",
|
||||||
"description": "analog clock abstract face",
|
"description": "analog clock abstract face",
|
||||||
"icon": "cc_abstract_icon.png",
|
"icon": "app_icon.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock",
|
"tags": "clock,abstract",
|
||||||
"supports" : ["BANGLEJS2"],
|
"supports" : ["BANGLEJS2"],
|
||||||
"screenshots": [{"url":"cc_abstract_screen.png"}],
|
"screenshots": [{"url":"screenshot1.png"}, {"url":"screenshot2.png"}],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"cc_abstract.app.js","url":"app.js"},
|
{"name": "cc_abstract.app.js", "url": "app.js"},
|
||||||
{"name":"cc_abstract.settings.js","url":"settings.js"},
|
{"name": "cc_abstract.img", "url": "app_icon.js", "evaluate": true}
|
||||||
{"name":"cc_abstract.img","url":"app_icon.js","evaluate":true}
|
|
||||||
],
|
],
|
||||||
"data": [{"name":"cc_abstract.json"}]
|
"data": [{"name":"cc_abstract.json"}]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 633 B |
Binary file not shown.
|
After Width: | Height: | Size: 663 B |
|
|
@ -1,33 +0,0 @@
|
||||||
(function(back) {
|
|
||||||
const defaultSettings = {
|
|
||||||
loadWidgets : false,
|
|
||||||
textAboveHands : false,
|
|
||||||
shortHrHand : false,
|
|
||||||
show24HourMode : false
|
|
||||||
}
|
|
||||||
let settings = Object.assign(defaultSettings, require('Storage').readJSON('cc_clock24.json',1) || {});
|
|
||||||
|
|
||||||
const save = () => require('Storage').write('cc_clock24.json', settings);
|
|
||||||
|
|
||||||
const appMenu = {
|
|
||||||
'': {title: 'cc_clock24'}, '< Back': back,
|
|
||||||
/*LANG*/'Load widgets': {
|
|
||||||
value : !!settings.loadWidgets,
|
|
||||||
onchange : v => { settings.loadWidgets=v; save();}
|
|
||||||
},
|
|
||||||
/*LANG*/'Text above hands': {
|
|
||||||
value : !!settings.textAboveHands,
|
|
||||||
onchange : v => { settings.textAboveHands=v; save();}
|
|
||||||
},
|
|
||||||
/*LANG*/'Short hour hand': {
|
|
||||||
value : !!settings.shortHrHand,
|
|
||||||
onchange : v => { settings.shortHrHand=v; save();}
|
|
||||||
},
|
|
||||||
/*LANG*/'Show 24 hour mode': {
|
|
||||||
value : !!settings.show24HourMode,
|
|
||||||
onchange : v => { settings.show24HourMode=v; save();}
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
E.showMenu(appMenu);
|
|
||||||
})
|
|
||||||
Loading…
Reference in New Issue