Skip to content

Commit

Permalink
fix(color): solid background for fullscreen warning dialogs (#5712)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Dec 16, 2024
1 parent 9109d4f commit c703cb3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions radio/src/gui/colorlcd/libui/fullscreen_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ FullScreenDialog::FullScreenDialog(
confirmHandler(confirmHandler)
{
setWindowFlag(OPAQUE);
etx_solid_bg(lvobj, COLOR_THEME_WARNING_INDEX);

// In case alert raised while splash screen is showing.
cancelSplash();

Window* p = Layer::back();
if (p) p->hide();

Layer::push(this);

bringToTop();
Expand All @@ -72,8 +70,7 @@ void FullScreenDialog::build()
{
auto div = new Window(this, {0, ALERT_FRAME_TOP, LCD_W, ALERT_FRAME_HEIGHT});
div->setWindowFlag(NO_FOCUS);
etx_bg_color(div->getLvObj(), COLOR_THEME_PRIMARY2_INDEX);
etx_obj_add_style(div->getLvObj(), styles->bg_opacity_50, LV_PART_MAIN);
etx_solid_bg(div->getLvObj(), COLOR_THEME_PRIMARY2_INDEX);

new StaticIcon(
this, ALERT_BITMAP_LEFT, ALERT_BITMAP_TOP,
Expand Down Expand Up @@ -175,8 +172,8 @@ void FullScreenDialog::deleteLater(bool detach, bool trash)
Layer::pop(this);
Window::deleteLater(detach, trash);
}
Window* p = Layer::back();
if (p) p->show();
// Window* p = Layer::back();
// if (p) p->show();
}

void FullScreenDialog::setMessage(std::string text)
Expand Down

0 comments on commit c703cb3

Please sign in to comment.