Bug fix
parent
d76f3e859d
commit
64684680b2
|
|
@ -10,7 +10,8 @@ const cirRad = 2*Math.PI;
|
||||||
const proportion = 0.3; // relative size of hour hand
|
const proportion = 0.3; // relative size of hour hand
|
||||||
const thickness = 4; // thickness of decorative lines
|
const thickness = 4; // thickness of decorative lines
|
||||||
// retrieve settings from menu
|
// retrieve settings from menu
|
||||||
const settings = require("Storage").readJSON("app.json", 1);
|
// const settings = require("Storage").readJSON("app.json", 1);
|
||||||
|
require('Storage').read('app.json',settings);
|
||||||
const decoration = settings.decoration;
|
const decoration = settings.decoration;
|
||||||
const widgets = settings.widgets;
|
const widgets = settings.widgets;
|
||||||
if (widgets) {
|
if (widgets) {
|
||||||
|
|
@ -165,7 +166,7 @@ const drawMinuteHand = () => {
|
||||||
case "blue":
|
case "blue":
|
||||||
g.setColor(0,0,1);
|
g.setColor(0,0,1);
|
||||||
break;
|
break;
|
||||||
case "80's":
|
case "80s":
|
||||||
g.setColor(1,0,0);
|
g.setColor(1,0,0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
@ -194,13 +195,13 @@ const drawHourHand = () => {
|
||||||
const drawClockFace = () => {
|
const drawClockFace = () => {
|
||||||
switch(colour) {
|
switch(colour) {
|
||||||
case "red":
|
case "red":
|
||||||
g.setColor(0.7,0.1,0);
|
g.setColor(0.8,0.3,0);
|
||||||
break;
|
break;
|
||||||
case "green":
|
case "green":
|
||||||
g.setColor(0.1,0.7,0);
|
g.setColor(0.1,0.7,0);
|
||||||
break;
|
break;
|
||||||
case "blue":
|
case "blue":
|
||||||
g.setColor(0.1,0,0.7);
|
g.setColor(0,0.3,0.8);
|
||||||
break;
|
break;
|
||||||
case "80's":
|
case "80's":
|
||||||
g.setColor(1,1,1);
|
g.setColor(1,1,1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue