From 98dd426e8adfb528e0320acbad8712d93027fdd2 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 8 Apr 2023 18:44:21 -0600 Subject: [PATCH] Remove message buttons, make font bigger --- messagegui/messagegui.app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/messagegui/messagegui.app.js b/messagegui/messagegui.app.js index 682e474..2f356da 100644 --- a/messagegui/messagegui.app.js +++ b/messagegui/messagegui.app.js @@ -285,14 +285,14 @@ function showMessage(msgid) { if (body) { var w = g.getWidth()-10; - if (g.setFont(bodyFont).stringWidth(body) > w * 2) { + if (false && g.setFont(bodyFont).stringWidth(body) > w * 2) { bodyFont = fontBig; if (settings.fontSize!=1 && g.setFont(bodyFont).stringWidth(body) > w * 3) bodyFont = fontMedium; } if (g.setFont(bodyFont).stringWidth(body) > w) { lines = g.setFont(bodyFont).wrapString(msg.body, w); - var maxLines = Math.floor((g.getHeight()-110) / g.getFontHeight()); + var maxLines = Math.floor((g.getHeight()-75) / g.getFontHeight()); body = (lines.length>maxLines) ? lines.slice(0,maxLines).join("\n")+"..." : lines.join("\n"); } } @@ -304,7 +304,7 @@ function showMessage(msgid) { } var buttons = [ ]; - if (msg.positive) { + if (false && msg.positive) { buttons.push({type:"btn", src:atob("GRSBAAAAAYAAAcAAAeAAAfAAAfAAAfAAAfAAAfAAAfBgAfA4AfAeAfAPgfAD4fAA+fAAP/AAD/AAA/AAAPAAADAAAA=="), cb:()=>{ msg.new = false; cancelReloadTimeout(); // don't auto-reload to clock now @@ -312,7 +312,7 @@ function showMessage(msgid) { checkMessages({clockIfNoMsg:1,clockIfAllRead:1,showMsgIfUnread:1,openMusic:openMusic}); }}); } - if (msg.negative) { + if (false && msg.negative) { if (buttons.length) buttons.push({width:32}); // nasty hack... buttons.push({type:"btn", src:atob("FhaBADAAMeAB78AP/4B/fwP4/h/B/P4D//AH/4AP/AAf4AB/gAP/AB/+AP/8B/P4P4fx/A/v4B//AD94AHjAAMA="), cb:()=>{ msg.new = false;