Fix hwid_a_battery_widget background color

master
Matija Tošić 2023-08-14 01:23:11 +02:00
parent 53aaffab0b
commit c380bda4dc
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);