mirror of https://github.com/espruino/BangleApps
fixed app looking ugly when using dark theme
parent
0f111b0ffc
commit
e15bd46f8f
|
@ -192,6 +192,7 @@ function drawRest() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawDoIt() {
|
function drawDoIt() {
|
||||||
|
const oldBgColor = g.getBgColor();
|
||||||
g.setBgColor('#00FF00').clear();
|
g.setBgColor('#00FF00').clear();
|
||||||
g.drawImage(getImg(), 44, 44);
|
g.drawImage(getImg(), 44, 44);
|
||||||
g.setFont(BIG_FONT)
|
g.setFont(BIG_FONT)
|
||||||
|
@ -212,6 +213,7 @@ function drawDoIt() {
|
||||||
}, 1400);
|
}, 1400);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setMode(MAIN_MENU);
|
setMode(MAIN_MENU);
|
||||||
|
g.setBgColor(oldBgColor);
|
||||||
redrawApp();
|
redrawApp();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
@ -281,7 +283,7 @@ const drawFuncPerMode = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function redrawApp(){
|
function redrawApp(){
|
||||||
g.setBgColor(-1).clear();
|
g.clear();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
drawFuncPerMode[mode]();
|
drawFuncPerMode[mode]();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue