fixed app looking ugly when using dark theme

pull/3350/head
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() { 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]();
} }