Skip to content

Commit

Permalink
Fix a bug with redshift and critical battery level
Browse files Browse the repository at this point in the history
  • Loading branch information
zRenard committed Feb 17, 2024
1 parent 038d963 commit 96e826b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/zRenardWatchView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ class zRenardWatchView extends WatchUi.WatchFace {
dc.fillRectangle(0, 3*height/4+4+offSetBigFont, width, 20);
}
if (battery <=batteryLevel || System.getSystemStats().charging ) {
dc.setColor(fgC, Graphics.COLOR_TRANSPARENT);
if (redShift) {
dc.setColor(bgC, Graphics.COLOR_TRANSPARENT);
} else {
dc.setColor(fgC, Graphics.COLOR_TRANSPARENT);
}
dc.drawText(width / 2, 3*height/4+offSetBigFont, Graphics.FONT_TINY, battery.toString() + "%", Graphics.TEXT_JUSTIFY_CENTER);
}

Expand Down

0 comments on commit 96e826b

Please sign in to comment.