From 97113d14be0b2ad672262c23e87f6be16788fcfe Mon Sep 17 00:00:00 2001 From: michele Date: Sun, 3 Nov 2024 14:32:01 +0100 Subject: [PATCH] tinyeads: show the side bands of the same color of the hair only when the widgets are showing --- apps/tinyheads/lib.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/tinyheads/lib.js b/apps/tinyheads/lib.js index a80f1059a..d772e208d 100644 --- a/apps/tinyheads/lib.js +++ b/apps/tinyheads/lib.js @@ -135,7 +135,13 @@ exports.drawFace = function(scale, eyesNum, mouthNum, peek, offset) { // Draw face let xOffset = (g.getWidth() - (exports.faceW * scale)) / 2; let yOffset = (offset ? offset : 0) + ((g.getHeight() - (exports.faceH * scale)) / 2); - g.setBgColor(exports.settings.hairColour); + + if (exports.settings.showWidgets == 'on' || (exports.settings.showWidgets == 'unlock' && !Bangle.isLocked())) { + g.setBgColor(exports.settings.hairColour); + } else { + g.setBgColor(0,0,0); + } + g.clearRect(Bangle.appRect); g.setClipRect(Bangle.appRect.x, Bangle.appRect.y, Bangle.appRect.x2, Bangle.appRect.y2);