mirror of https://github.com/espruino/BangleApps
Minor changes
parent
bf51d5ed7a
commit
a11999648f
|
@ -1 +1 @@
|
|||
require("heatshrink").decompress(atob("mEwgP/AD3vAonB4IFDnOLAod974FD/OfAYP9u/5wP1r/71/zzHt3/9q/H/n9r/63/P/nt7/9+8VzoLB/e/gOB8c/EoNV65RNRrGH8Eqh0AgPFsE/jsAgfAsEgjARBoFAuEQAoPA40umwFBoPEu4XBgHBwEjnGABYImBiHAgHDgUh2AFBocGusVAoPCgE+h4XBAAMUgpUO80zCwdFqILD9MxAocBBYkppQFDotQRrAAGA"))
|
||||
require("heatshrink").decompress(atob("mEwgP/ADPHv4DB4Hj7wJC5nD7oLCz1zApffAonvDoQFB84LE62nFIXz63PGoXz6QFC+f//U/I4f+KxqTeh8AuFgAoMbwHwAoURwGw4AFBjOAmAFCj+MmOQAoWAmOYAoM5AoMYXoWAmf4AoWMmf8C4WImARCHYMgiBUUjOcAockpgFDnkIAomECIgFEjscRzI"))
|
||||
|
|
|
@ -126,28 +126,30 @@ function draw() {
|
|||
g.fillRect(0,y,W,H);
|
||||
|
||||
// Draw date
|
||||
y -= settings.fullscreen ? 5 : 0;
|
||||
var date = new Date();
|
||||
g.setColor("#000");
|
||||
g.setFontAlign(1,1);
|
||||
g.setLargeFont();
|
||||
var dateStr = date.getDate();
|
||||
g.drawString(dateStr, W/2, y+5);
|
||||
dateStr = ("0"+dateStr).substr(-2);
|
||||
g.drawString(dateStr, W/2, y+3);
|
||||
|
||||
g.setSmallFont();
|
||||
g.setFontAlign(-1,1);
|
||||
var monthStr = locale.month(date, 1);
|
||||
g.drawString(monthStr, W/2 + 5, y+2);
|
||||
g.drawString(locale.dow(date, true), W/2 + 5, y-22);
|
||||
g.drawString(locale.month(date, 1), W/2 + 5, y);
|
||||
|
||||
// Draw time
|
||||
g.setColor("#fff");
|
||||
g.setLargeFont();
|
||||
g.setFontAlign(0,-1);
|
||||
var timeStr = locale.time(date,1);
|
||||
g.drawString(timeStr, W/2, y+10);
|
||||
y += settings.fullscreen ? 20 : 10;
|
||||
g.drawString(timeStr, W/2, y);
|
||||
|
||||
// Draw steps or timer
|
||||
y += H/5*2+10;
|
||||
y += H/5*2;
|
||||
g.setSmallFont();
|
||||
g.setFontAlign(0,0);
|
||||
var str = isAlarmEnabled() ? "T-" + getAlarmMinutes() + " min." : getSteps() ;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue