From de91fbfbb7fa6736ea93b15b698dd5ac9e94faf9 Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Mon, 30 Jun 2025 21:20:42 -0400 Subject: [PATCH] Fix unused vars, increase inline clkinfo width --- apps/modclock/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/modclock/app.js b/apps/modclock/app.js index 3ad72edfb..9e2126189 100644 --- a/apps/modclock/app.js +++ b/apps/modclock/app.js @@ -137,7 +137,7 @@ let clockInfoMenuInline; if(showInlineClkInfo){ clockInfoMenuInline = require("clock_info").addInteractive(clockInfoItems, { // Add the dimensions we're rendering to here - these are used to detect taps on the clock info area - x : g.getWidth()/2+6, y: 69, w: 80, h:25, + x : g.getWidth()/2+6, y: 69, w: 95, h:25, // You can add other information here you want to be passed into 'options' in 'draw' // This function draws the info draw : (itm, info, options) => { @@ -153,7 +153,7 @@ if(showInlineClkInfo){ } // we're drawing center-aligned here - var midx = options.x+options.w/2; + //var midx = options.x+options.w/2; var midy=options.y+options.h/2; if (info.img){ g.drawImage(info.img, options.x+4,midy-7.2,{scale: 0.63}); @@ -212,7 +212,6 @@ let draw = function() { // pad the date - this clears the background if the date were to change length var dateStr = require("locale").dow(new Date(), 1)+", " +new Date().getDate(); //print(g.stringHeight(dateStr)); - dateStrWidth=g.stringWidth(dateStr); g.drawString(" "+dateStr+" ", g.getWidth()/2+6, Y+9, true /*clear background*/); Bangle.drawWidgets();