From 1187af38377e4da180f642e528376df1118a8235 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:12:23 +0100 Subject: [PATCH 1/7] set light theme to force white widget bar --- apps/torch/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/torch/app.js b/apps/torch/app.js index 4f44faf69..1bc8944ad 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -11,6 +11,7 @@ Bangle.setLCDBrightness(1); Bangle.setLCDPower(1); Bangle.setLCDTimeout(0); g.reset(); +g.setTheme({bg:"#fff",fg:"#000"}) g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); Bangle.setUI({ From 9d2be74bc463791a452af518bdb8ea39b687a097 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:14:13 +0100 Subject: [PATCH 2/7] Update ChangeLog --- apps/torch/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/torch/ChangeLog b/apps/torch/ChangeLog index 0ece0538f..d851c242a 100644 --- a/apps/torch/ChangeLog +++ b/apps/torch/ChangeLog @@ -5,3 +5,4 @@ 0.05: Default full Brightness 0.06: Press upper left corner to exit on Bangle.js 2 0.07: Code tweaks +0.08: Force white background for widgetbar From 4de39617c1d1cb111dea34637bba4ffa962daaf2 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:14:36 +0100 Subject: [PATCH 3/7] Update metadata.json --- apps/torch/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/torch/metadata.json b/apps/torch/metadata.json index 88329eb44..aff8dee37 100644 --- a/apps/torch/metadata.json +++ b/apps/torch/metadata.json @@ -2,7 +2,7 @@ "id": "torch", "name": "Torch", "shortName": "Torch", - "version": "0.07", + "version": "0.08", "description": "Turns screen white to help you see in the dark. Select from the launcher or press BTN1,BTN3,BTN1,BTN3 quickly to start when in any app that shows widgets on Bangle.js 1. You can also set the color through the app's setting menu.", "icon": "app.png", "tags": "tool,torch", From ab24b214e068179641575f4b9269c171d78e03e7 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:19:53 +0100 Subject: [PATCH 4/7] widget bar follows settings colour --- apps/torch/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/torch/app.js b/apps/torch/app.js index 1bc8944ad..8d9205784 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -11,7 +11,7 @@ Bangle.setLCDBrightness(1); Bangle.setLCDPower(1); Bangle.setLCDTimeout(0); g.reset(); -g.setTheme({bg:"#fff",fg:"#000"}) +g.setTheme({settings.bg,fg:"#000"}) g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); Bangle.setUI({ From 22c27b7d1d17ece9f175273230a34ffb25bdce8d Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:21:16 +0100 Subject: [PATCH 5/7] Update ChangeLog --- apps/torch/ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/torch/ChangeLog b/apps/torch/ChangeLog index d851c242a..27d880e78 100644 --- a/apps/torch/ChangeLog +++ b/apps/torch/ChangeLog @@ -5,4 +5,4 @@ 0.05: Default full Brightness 0.06: Press upper left corner to exit on Bangle.js 2 0.07: Code tweaks -0.08: Force white background for widgetbar +0.08: Force background of widget field to the torch colour From 7888824e691bb772d1cd78ff1d880d279be1a69c Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:22:19 +0100 Subject: [PATCH 6/7] Update app.js --- apps/torch/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/torch/app.js b/apps/torch/app.js index 8d9205784..44a343db9 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -11,7 +11,7 @@ Bangle.setLCDBrightness(1); Bangle.setLCDPower(1); Bangle.setLCDTimeout(0); g.reset(); -g.setTheme({settings.bg,fg:"#000"}) +g.setTheme({bg:settings.bg,fg:"#000"}) g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); Bangle.setUI({ From 4758d2b71f65050ef3e9edd300a021e6d1c01b96 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Wed, 9 Nov 2022 11:26:49 +0100 Subject: [PATCH 7/7] Update app.js --- apps/torch/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/torch/app.js b/apps/torch/app.js index 44a343db9..e3f1ab89c 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -11,7 +11,7 @@ Bangle.setLCDBrightness(1); Bangle.setLCDPower(1); Bangle.setLCDTimeout(0); g.reset(); -g.setTheme({bg:settings.bg,fg:"#000"}) +g.setTheme({bg:settings.bg,fg:"#000"}); g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); Bangle.setUI({