From 96e826b0777c0bd52c9d74ba12023cc1e300c20e Mon Sep 17 00:00:00 2001 From: _FoX_ Date: Sat, 17 Feb 2024 23:02:11 +0100 Subject: [PATCH] Fix a bug with redshift and critical battery level --- source/zRenardWatchView.mc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/zRenardWatchView.mc b/source/zRenardWatchView.mc index abde489..fa4978c 100644 --- a/source/zRenardWatchView.mc +++ b/source/zRenardWatchView.mc @@ -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); }