Update widget.js

pull/1349/head
Hilmar Strauch 2022-01-26 14:42:48 +01:00 committed by GitHub
parent b7cb979c6b
commit b6d425f4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
if (!BANGLEJS2) if (!BANGLEJS2)
g.setColor(percent>70 ? "#ff0000" : (percent>50 ? "#ffff00" : "#ffffff")); g.setColor(percent>70 ? "#ff0000" : (percent>50 ? "#ffff00" : "#ffffff"));
else else
g.setColor(percent>70 ? "#0f0" : (percent>50 ? "#00f" : "#f00")); g.setColor(percent>70 ? "#f00" : (percent>50 ? "#00f" : "#0f0"));
g.setFont("6x8").setFontAlign(0,0).drawString(percent+"%", this.x+12, this.y+20, true/*solid*/); g.setFont("6x8").setFontAlign(0,0).drawString(percent+"%", this.x+12, this.y+20, true/*solid*/);
} }
var ramInterval; var ramInterval;