From c380bda4dccacdb202b0c32ab818e8efc48f3723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20To=C5=A1i=C4=87?= Date: Mon, 14 Aug 2023 01:23:11 +0200 Subject: [PATCH] Fix hwid_a_battery_widget background color --- apps/hwid_a_battery_widget/ChangeLog | 1 + apps/hwid_a_battery_widget/metadata.json | 2 +- apps/hwid_a_battery_widget/widget.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/hwid_a_battery_widget/ChangeLog b/apps/hwid_a_battery_widget/ChangeLog index 6c57f97a8c..e7cdd2b4b9 100644 --- a/apps/hwid_a_battery_widget/ChangeLog +++ b/apps/hwid_a_battery_widget/ChangeLog @@ -7,3 +7,4 @@ 0.07: Fixed position after unlocking 0.08: Handling exceptions 0.09: Add option for showing battery high mark +0.10: Fix background color diff --git a/apps/hwid_a_battery_widget/metadata.json b/apps/hwid_a_battery_widget/metadata.json index 73dfc7c92f..98d7ce2d59 100644 --- a/apps/hwid_a_battery_widget/metadata.json +++ b/apps/hwid_a_battery_widget/metadata.json @@ -3,7 +3,7 @@ "name": "A Battery Widget (with percentage) - Hanks Mod", "shortName":"H Battery Widget", "icon": "widget.png", - "version":"0.09", + "version":"0.10", "type": "widget", "supports": ["BANGLEJS", "BANGLEJS2"], "readme": "README.md", diff --git a/apps/hwid_a_battery_widget/widget.js b/apps/hwid_a_battery_widget/widget.js index 0275350512..79ce9a5ad8 100644 --- a/apps/hwid_a_battery_widget/widget.js +++ b/apps/hwid_a_battery_widget/widget.js @@ -26,6 +26,7 @@ var y = this.y; if ((typeof x === 'undefined') || (typeof y === 'undefined')) { } else { + g.setBgColor(COLORS.white); g.clearRect(old_x, old_y, old_x + width, old_y + height); const l = E.getBattery(); // debug: Math.floor(Math.random() * 101);