Update pebble.app.js

pull/1639/head
sir-indy 2022-03-29 14:06:58 +01:00 committed by GitHub
parent e60586f138
commit 7c697cf749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}
}