From 39c9158b50e327d4a4904004f35fe6dc640bd904 Mon Sep 17 00:00:00 2001 From: Ronin0000 <89286474+Ronin0000@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:06:55 -0800 Subject: [PATCH] Update lcars.app.js Fix Bug with 0.30 update --- apps/lcars/lcars.app.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/lcars/lcars.app.js b/apps/lcars/lcars.app.js index 650840d9e..8d67dddda 100644 --- a/apps/lcars/lcars.app.js +++ b/apps/lcars/lcars.app.js @@ -35,8 +35,6 @@ let cWhite = "#FFFFFF"; let cBlack = "#000000"; let cGrey = "#424242"; -randomColors(); - /* * Global lcars variables */ @@ -192,7 +190,7 @@ let queueDraw = function() { }, timeout - (Date.now() % timeout)); }; -let randomColors = function(){ +function randomColors() { if(settings.randomColors == true){ let color1 = bg_code[Math.floor(Math.random() * bg_code.length)]; let color2 = bg_code[Math.floor(Math.random() * bg_code.length)]; @@ -786,7 +784,8 @@ Bangle.setUI({mode:"clock",remove:function() { widget_utils.cleanup(); }}); Bangle.loadWidgets(); - + +randomColors();//Apply random colors if applied // Clear the screen once, at startup and draw clock g.setTheme({bg:"#000",fg:"#fff",dark:true}).clear(); draw();