hwt: Center "Wash ..." text properly

master
Adam Schmalhofer 2021-12-18 17:37:04 +01:00
parent d51c6679fe
commit c5536ee49a
2 changed files with 4 additions and 2 deletions

View File

@ -1889,7 +1889,7 @@
{ {
"id": "widhwt", "id": "widhwt",
"name": "Hand Wash Timer", "name": "Hand Wash Timer",
"version": "0.02-rc7", "version": "0.02-rc8",
"description": "On Bangle.js 1 swipe your wrist over the watch face to start your personal Bangle.js 1 hand wash timer. On Bangle.js2 the Pattern Launcher is recommended to start the timer. Start washing after the short buzz and stop after the long buzz 35sec. later.", "description": "On Bangle.js 1 swipe your wrist over the watch face to start your personal Bangle.js 1 hand wash timer. On Bangle.js2 the Pattern Launcher is recommended to start the timer. Start washing after the short buzz and stop after the long buzz 35sec. later.",
"icon": "widget.png", "icon": "widget.png",
"type": "widget", "type": "widget",

View File

@ -2,7 +2,9 @@
// with our own message // with our own message
g.clearRect(38, 68, 138, 108); g.clearRect(38, 68, 138, 108);
g.drawRect(38, 68, 138, 108); g.drawRect(38, 68, 138, 108);
g.setFontVector(13).drawString("Wash...", 60, 82); g.setFontVector(13).setFontAlign(0, 0, 0).drawString("Wash...",
g.getWidth()/2,
g.getHeight()/2);
Bangle.buzz(); Bangle.buzz();
setTimeout(() => { setTimeout(() => {