Merge pull request #2968 from matijatosic/hwid

Fix hwid_a_battery_widget background color
pull/2971/head
Gordon Williams 2023-08-14 07:44:34 +01:00 committed by GitHub
commit 4d4d9aa0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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",

View File

@ -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);