mirror of https://github.com/espruino/BangleApps
weather: adjust widget height
parent
6b09377414
commit
388e1c792e
|
@ -3,9 +3,9 @@
|
|||
const w = require('weather').load()
|
||||
if (!w) return;
|
||||
g.reset();
|
||||
g.setColor(0).fillRect(this.x, this.y, this.x+this.width, this.y+24)
|
||||
g.setColor(0).fillRect(this.x, this.y, this.x+this.width-1, this.y+23)
|
||||
if (w.txt) {
|
||||
require('weather').drawIcon(w.txt, this.x+10, this.y+8, 8);
|
||||
require('weather').drawIcon(w.txt, this.x+10, this.y+8, 7.5);
|
||||
}
|
||||
if (w.temp) {
|
||||
let t = require('locale').temp(w.temp-273.15); // applies conversion
|
||||
|
|
Loading…
Reference in New Issue