mirror of https://github.com/espruino/BangleApps
smpltmr 0.10: Timer ClockInfo now uses +- icons, and changes timer from 'T-5 min' to just '5 min' to aid readability
parent
3d1dfd3fb3
commit
8d602d2669
|
@ -7,3 +7,4 @@
|
||||||
0.07: Update clock_info to avoid a redraw
|
0.07: Update clock_info to avoid a redraw
|
||||||
0.08: Timer ClockInfo now updates once a minute
|
0.08: Timer ClockInfo now updates once a minute
|
||||||
0.09: Timer ClockInfo resets to timer menu when blurred
|
0.09: Timer ClockInfo resets to timer menu when blurred
|
||||||
|
0.10: Timer ClockInfo now uses +- icons, and changes timer from 'T-5 min' to just '5 min' to aid readability
|
|
@ -28,7 +28,7 @@
|
||||||
var min = getAlarmMinutes();
|
var min = getAlarmMinutes();
|
||||||
if(min < 0)
|
if(min < 0)
|
||||||
return "OFF";
|
return "OFF";
|
||||||
return "T-" + String(min)+ " min";
|
return min + " min";
|
||||||
}
|
}
|
||||||
|
|
||||||
function increaseAlarm(t){
|
function increaseAlarm(t){
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
offsets.forEach((o, i) => {
|
offsets.forEach((o, i) => {
|
||||||
smpltmrItems.items = smpltmrItems.items.concat({
|
smpltmrItems.items = smpltmrItems.items.concat({
|
||||||
name: null,
|
name: null,
|
||||||
get: () => ({ text: (o > 0 ? "+" : "") + o + " min.", img: smpltmrItems.img }),
|
get: () => ({ text: (o > 0 ? "+" : "") + o + " min", img: (o>0)?atob("GBiBAAB+AAB+AAAYAAAYAAB+AA3/sA+B8A4AcAwAMBgYGBgYGDAYDDAYDDH/jDH/jDAYDDAYDBgYGBgYGAwAMA4AcAeB4AH/gAB+AA=="):atob("GBiBAAB+AAB+AAAYAAAYAAB+AA3/sA+B8A4AcAwAMBgAGBgAGDAADDAADDH/jDH/jDAADDAADBgAGBgAGAwAMA4AcAeB4AH/gAB+AA==") }),
|
||||||
show: function() { },
|
show: function() { },
|
||||||
hide: function() { },
|
hide: function() { },
|
||||||
blur: restoreMainItem,
|
blur: restoreMainItem,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "smpltmr",
|
"id": "smpltmr",
|
||||||
"name": "Simple Timer",
|
"name": "Simple Timer",
|
||||||
"shortName": "Simple Timer",
|
"shortName": "Simple Timer",
|
||||||
"version": "0.09",
|
"version": "0.10",
|
||||||
"description": "A very simple app to start a timer.",
|
"description": "A very simple app to start a timer.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,alarm,timer,clkinfo",
|
"tags": "tool,alarm,timer,clkinfo",
|
||||||
|
|
Loading…
Reference in New Issue