weather: adjust widget height

master
Ben Whittaker 2020-05-22 22:57:32 -04:00
parent 6b09377414
commit 388e1c792e
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@
const w = require('weather').load() const w = require('weather').load()
if (!w) return; if (!w) return;
g.reset(); 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) { 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) { if (w.temp) {
let t = require('locale').temp(w.temp-273.15); // applies conversion let t = require('locale').temp(w.temp-273.15); // applies conversion