forked from FOSS/BangleApps
commit
918dcba633
|
@ -4462,7 +4462,7 @@
|
|||
"shortName":"93 Dub",
|
||||
"icon": "93dub.png",
|
||||
"screenshots": [{"url":"screenshot.png"}],
|
||||
"version":"0.02",
|
||||
"version":"0.03",
|
||||
"description": "Fan recreation of orviwan's 91 Dub app for the Pebble smartwatch. Uses assets from his 91-Dub-v2.0 repo",
|
||||
"tags": "clock",
|
||||
"type": "clock",
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
0.01 Initial version for upload
|
||||
0.02 DiscoMinotaur's adjustments (removed battery and adjusted spacing)
|
||||
0.03 Code style cleanup
|
||||
|
|
|
@ -48,7 +48,6 @@ function queueDraw() {
|
|||
}
|
||||
|
||||
function drawBackground() {
|
||||
// set background
|
||||
g.setBgColor(0,0,0);
|
||||
g.setColor(1,1,1);
|
||||
g.clear();
|
||||
|
@ -69,13 +68,16 @@ g.setColor(1,1,1);
|
|||
if (is24hr){
|
||||
g.drawImage(img24hr,32, 65);
|
||||
if (leadingZero){
|
||||
h = ("0"+h).substr(-2);}}
|
||||
else if (h > 12) {g.drawImage(imgPM,40, 70);
|
||||
h = ("0"+h).substr(-2);
|
||||
}
|
||||
} else if (h > 12) {
|
||||
g.drawImage(imgPM,40, 70);
|
||||
h = h - 12;
|
||||
if (leadingZero){
|
||||
h = ("0"+h).substr(-2);}
|
||||
else
|
||||
{h = " " + h;}
|
||||
h = ("0"+h).substr(-2);
|
||||
} else {
|
||||
h = " " + h;
|
||||
}
|
||||
}
|
||||
|
||||
//draw separator
|
||||
|
@ -102,8 +104,9 @@ g.setFontCustom(fontNum, 48, 28, 41);
|
|||
if (h<10) {
|
||||
if (leadingZero) {
|
||||
h = ("0"+h).substr(-2);
|
||||
} else {
|
||||
h = " " + h;
|
||||
}
|
||||
else {h = " " + h;}
|
||||
}
|
||||
g.drawString(h, 25, 90, true);
|
||||
g.drawString(("0"+m).substr(-2), 92, 90, true);
|
||||
|
|
Loading…
Reference in New Issue