master
Richard Hopkins 2020-05-11 11:23:13 +01:00
parent 1a94d84845
commit b96e6ad416
1 changed files with 3 additions and 3 deletions

View File

@ -14,14 +14,14 @@ 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);
const decoration = settings['decoration']; const decoration = settings.decoration;
const widgets = settings['widgets']; const widgets = settings.widgets;
if (widgets) { if (widgets) {
widgetHeight = 24;} widgetHeight = 24;}
else { else {
widgetHeight = 0;} widgetHeight = 0;}
const colours = ["green","red","blue","80s"]; const colours = ["green","red","blue","80s"];
const colour = colours[settings['colour']]; const colour = colours[settings.colour];
const drawSegment = (params) => { const drawSegment = (params) => {
angle1 = params.start/360*cirRad; angle1 = params.start/360*cirRad;