mirror of https://github.com/espruino/BangleApps
Update lcars.app.js Fix Bug with 0.30 update
parent
42db617249
commit
39c9158b50
|
@ -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)];
|
||||
|
@ -787,6 +785,7 @@ Bangle.setUI({mode:"clock",remove:function() {
|
|||
}});
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue