Swap stop watch positions

This commit is contained in:
2026-03-12 12:58:52 -06:00
parent 1c433fc56b
commit 8275abdb57

View File

@@ -49,9 +49,9 @@
} }
let Ttxt1 = timeToText(Tt1); let Ttxt1 = timeToText(Tt1);
g.clearRect(0, y-60, w, y-34); g.clearRect(0, y+61, w, y+88);
g.setColor(g.theme.fg); g.setColor(g.theme.fg);
g.setFontAlign(0, 0).setFont("Vector", 26).drawString("S1: " + Ttxt1, x, y-45); g.setFontAlign(0, 0).setFont("Vector", 26).drawString(Ttxt1, x, y+74);
} }
if (stopWatch.start2 || stopWatch.elapsed2) { if (stopWatch.start2 || stopWatch.elapsed2) {
@@ -68,9 +68,9 @@
} }
let Ttxt2 = timeToText(Tt2); let Ttxt2 = timeToText(Tt2);
g.clearRect(0, y+61, w, y+88); g.clearRect(0, y-60, w, y-34);
g.setColor(g.theme.fg); g.setColor(g.theme.fg);
g.setFontAlign(0, 0).setFont("Vector", 26).drawString("S2: " + Ttxt2, x, y+76); g.setFontAlign(0, 0).setFont("Vector", 26).drawString(Ttxt2, x, y-45);
} }
} }
@@ -103,16 +103,16 @@
const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
var dateStr = date.getDate() + " " + days[date.getDay()]; var dateStr = date.getDate() + " " + days[date.getDay()];
// don't draw date string if stopwatch 2 is running // don't draw date string if stopwatch 1 is running
if (!stopWatch.start2 && !stopWatch.elapsed2) { if (!stopWatch.start1 && !stopWatch.elapsed1) {
g.setFontAlign(0, 0).setFont("Vector", 26).drawString(dateStr, x-32, y+74); g.setFontAlign(0, 0).setFont("Vector", 26).drawString(dateStr, x-32, y+74);
g.setFontAlign(0, 0).setFont("Vector", 26).drawString(feels_like, x+53, y+74); g.setFontAlign(0, 0).setFont("Vector", 26).drawString(feels_like, x+53, y+74);
} }
//var wrapped = g.wrapString(myMessage, g.getWidth()-10).join("\n"); //var wrapped = g.wrapString(myMessage, g.getWidth()-10).join("\n");
// don't draw message if stopwatch 1 is running // don't draw message if stopwatch 2 is running
if (!stopWatch.start1 && !stopWatch.elapsed1) { if (!stopWatch.start2 && !stopWatch.elapsed2) {
g.setFontAlign(0, 0).setFont("Vector", 26).drawString(myMessage, x, y-45); g.setFontAlign(0, 0).setFont("Vector", 26).drawString(myMessage, x, y-45);
} }