From 403892ef2d2bd13b4291807f0f8adb4683c99234 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Fri, 12 Apr 2024 23:33:58 +0200 Subject: [PATCH] messagesoverlay - Fix font color for title and source in low mem theme --- apps/messagesoverlay/lib.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/messagesoverlay/lib.js b/apps/messagesoverlay/lib.js index fe0dde701..bf6fa7bc4 100644 --- a/apps/messagesoverlay/lib.js +++ b/apps/messagesoverlay/lib.js @@ -126,6 +126,10 @@ const roundedRect = function(x,y,w,h,filled){ const DIVIDER = 38; const drawScreen = function(title, src, iconcolor, icon){ + setColors(false); + + drawBorder(); + setColors(true); ovr.clearRect(2,2,ovr.getWidth()-3, DIVIDER - 1); @@ -136,8 +140,6 @@ const drawScreen = function(title, src, iconcolor, icon){ const w = ovr.getWidth() - 35 - 26; - drawBorder(); - if (title) drawTitle(title, textCenter, w, 8, DIVIDER - 8, 0); @@ -240,7 +242,6 @@ const showMessage = function(msg) { const drawBorder = function() { LOG("drawBorder", isQuiet()); - setColors(); ovr.drawRect(0,0,ovr.getWidth()-1,ovr.getHeight()-1); ovr.drawRect(1,1,ovr.getWidth()-2,ovr.getHeight()-2); ovr.drawRect(2,DIVIDER,ovr.getWidth()-2,DIVIDER+1); @@ -739,7 +740,6 @@ exports.message = function(type, event) { updateClearingTimeout(); - if (!isQuiet()) Bangle.setLCDPower(1); event.handled = true; g.flip(); };