Update lcars.app.js Fix Bug with 0.30 update

pull/3124/head
Ronin0000 2023-12-09 14:06:55 -08:00 committed by GitHub
parent 42db617249
commit 39c9158b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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();