1
0
Fork 0

fixed app looking ugly when using dark theme

master
Tom Wallroth 2024-04-19 14:01:26 +02:00
parent 0f111b0ffc
commit e15bd46f8f
1 changed files with 3 additions and 1 deletions

View File

@ -192,6 +192,7 @@ function drawRest() {
}
function drawDoIt() {
const oldBgColor = g.getBgColor();
g.setBgColor('#00FF00').clear();
g.drawImage(getImg(), 44, 44);
g.setFont(BIG_FONT)
@ -212,6 +213,7 @@ function drawDoIt() {
}, 1400);
setTimeout(() => {
setMode(MAIN_MENU);
g.setBgColor(oldBgColor);
redrawApp();
}, 2000);
}
@ -281,7 +283,7 @@ const drawFuncPerMode = {
}
function redrawApp(){
g.setBgColor(-1).clear();
g.clear();
Bangle.drawWidgets();
drawFuncPerMode[mode]();
}