From 48aed2c04ef62765e69083e3c307e2c5f7c78be6 Mon Sep 17 00:00:00 2001 From: Ronin0000 <89286474+Ronin0000@users.noreply.github.com> Date: Wed, 2 Feb 2022 15:34:12 -0800 Subject: [PATCH] Update app.js --- apps/torch/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/torch/app.js b/apps/torch/app.js index 28aa00bd6..36a992d8c 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -1,6 +1,13 @@ +const SETTINGS_FILE = "torch.json"; + +function loadSettings() { + settings = require("Storage").readJSON(SETTINGS_FILE,1)|| {'bg': '#FFFFFF', 'color': 'White'}; +} + Bangle.setLCDPower(1); Bangle.setLCDTimeout(0); g.reset(); +g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); // Any button turns off setWatch(()=>load(), BTN1);