0.02: Minor layout format tweak so it uses less memory and draws ok on Bangle.js 1 (#1012)
parent
6b2350188f
commit
1bac94c622
|
|
@ -4738,7 +4738,7 @@
|
|||
{
|
||||
"id": "weatherClock",
|
||||
"name": "Weather Clock",
|
||||
"version": "0.01",
|
||||
"version": "0.02",
|
||||
"description": "A clock which displays current weather conditions (requires Gadgetbridge and Weather apps).",
|
||||
"icon": "app.png",
|
||||
"screenshots": [{"url":"screens/screen1.png"}],
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
0.01: New App!
|
||||
0.01: New App!
|
||||
0.02: Minor layout format tweak so it uses less memory and draws ok on Bangle.js 1 (#1012)
|
||||
|
|
|
|||
|
|
@ -69,22 +69,20 @@ var clockLayout = new Layout( {
|
|||
{type:"txt", font:"10%", label:"01/01/1970", id:"date" }
|
||||
]
|
||||
},
|
||||
{type: "v", fillx: 1, c: [
|
||||
{type: "h", valign : 1, fillx:1, c: [
|
||||
{type: "img", filly: 1, id: "weatherIcon", src: sunIcon},
|
||||
{type: "v", fillx:1, c: [
|
||||
{type: "h", c: [
|
||||
{type: "txt", font: "10%", id: "temp", label: "000"},
|
||||
{type: "txt", font: "10%", id: "tempUnit", label: "°C"},
|
||||
]},
|
||||
{type: "h", c: [
|
||||
{type: "txt", font: "10%", id: "wind", label: "00"},
|
||||
{type: "txt", font: "10%", id: "windUnit", label: "km/h"},
|
||||
]}
|
||||
]
|
||||
},
|
||||
]},
|
||||
]}]
|
||||
{type: "h", valign : 1, fillx:1, c: [
|
||||
{type: "img", filly: 1, id: "weatherIcon", src: sunIcon},
|
||||
{type: "v", fillx:1, c: [
|
||||
{type: "h", c: [
|
||||
{type: "txt", font: "10%", id: "temp", label: "000"},
|
||||
{type: "txt", font: "10%", id: "tempUnit", label: "°C"},
|
||||
]},
|
||||
{type: "h", c: [
|
||||
{type: "txt", font: "10%", id: "wind", label: "00"},
|
||||
{type: "txt", font: "10%", id: "windUnit", label: "km/h"},
|
||||
]}
|
||||
]
|
||||
},
|
||||
]}]
|
||||
});
|
||||
|
||||
// timeout used to update every minute
|
||||
|
|
@ -133,4 +131,4 @@ Bangle.setUI("clock"); // Show launcher when middle button pressed
|
|||
Bangle.loadWidgets();
|
||||
Bangle.drawWidgets();
|
||||
clockLayout.render();
|
||||
draw();
|
||||
draw();
|
||||
|
|
|
|||
Loading…
Reference in New Issue