From 7c697cf74939b4988879e78b9d14838a44994286 Mon Sep 17 00:00:00 2001 From: sir-indy <53864146+sir-indy@users.noreply.github.com> Date: Tue, 29 Mar 2022 14:06:58 +0100 Subject: [PATCH] Update pebble.app.js --- apps/pebble/pebble.app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/pebble/pebble.app.js b/apps/pebble/pebble.app.js index b6aab30d7..b6576671c 100644 --- a/apps/pebble/pebble.app.js +++ b/apps/pebble/pebble.app.js @@ -79,6 +79,8 @@ function draw() { g.setColor(settings.bg); g.drawImage(img, w/2 + ((w/2) - 64)/2, 1, { scale: 1 }); drawCalendar(((w/2) - 42)/2, 14, 42, 4, da[2]); + + drawLock(); } // at x,y width:wi thicknes:th @@ -124,9 +126,11 @@ function loadThemeColors() { function drawLock(){ if(Bangle.isLocked()){ + g.setColor(theme.day); g.drawImage(atob("DhABH+D/wwMMDDAwwMf/v//4f+H/h/8//P/z///f/g=="), 1, 4); } else { - g.clearRect(0, 0, 20, 20); + g.setColor(settings.bg); + g.drawRect(0, 0, 20, 20); } }