fix(color): restore prior startup and shutdown behaviour (#4865)
This commit is contained in:
@@ -194,7 +194,7 @@ void drawSleepBitmap()
|
|||||||
} else {
|
} else {
|
||||||
shutdownWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
|
shutdownWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
|
||||||
shutdownWindow->setWindowFlag(OPAQUE);
|
shutdownWindow->setWindowFlag(OPAQUE);
|
||||||
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_BLACK_INDEX);
|
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
(new StaticIcon(shutdownWindow, 0, 0, ICON_SHUTDOWN, COLOR_THEME_PRIMARY2))
|
(new StaticIcon(shutdownWindow, 0, 0, ICON_SHUTDOWN, COLOR_THEME_PRIMARY2))
|
||||||
@@ -221,7 +221,7 @@ void drawShutdownAnimation(uint32_t duration, uint32_t totalDuration,
|
|||||||
if (shutdownWindow == nullptr) {
|
if (shutdownWindow == nullptr) {
|
||||||
shutdownWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
|
shutdownWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
|
||||||
shutdownWindow->setWindowFlag(OPAQUE);
|
shutdownWindow->setWindowFlag(OPAQUE);
|
||||||
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_BLACK_INDEX);
|
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);
|
||||||
|
|
||||||
if (sdMounted() && !shutdownSplashImg)
|
if (sdMounted() && !shutdownSplashImg)
|
||||||
shutdownSplashImg = BitmapBuffer::loadBitmap(
|
shutdownSplashImg = BitmapBuffer::loadBitmap(
|
||||||
|
|||||||
@@ -1482,8 +1482,9 @@ void edgeTxInit()
|
|||||||
|
|
||||||
#if defined(GUI)
|
#if defined(GUI)
|
||||||
if (!calibration_needed && !(startOptions & OPENTX_START_NO_SPLASH)) {
|
if (!calibration_needed && !(startOptions & OPENTX_START_NO_SPLASH)) {
|
||||||
if (!g_eeGeneral.dontPlayHello)
|
if (!g_eeGeneral.dontPlayHello) AUDIO_HELLO();
|
||||||
AUDIO_HELLO();
|
|
||||||
|
waitSplash();
|
||||||
}
|
}
|
||||||
#endif // defined(GUI)
|
#endif // defined(GUI)
|
||||||
|
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ TASK_FUNCTION(menusTask)
|
|||||||
|
|
||||||
mixerTaskInit();
|
mixerTaskInit();
|
||||||
|
|
||||||
waitSplash();
|
|
||||||
|
|
||||||
#if defined(PWR_BUTTON_PRESS)
|
#if defined(PWR_BUTTON_PRESS)
|
||||||
while (true) {
|
while (true) {
|
||||||
uint32_t pwr_check = pwrCheck();
|
uint32_t pwr_check = pwrCheck();
|
||||||
|
|||||||
Reference in New Issue
Block a user