Remove the White Square

custom
ailurux 1 year ago
parent dc74bc1de9
commit 20c2816a7b
  1. 2
      src/ui/screen.cpp
  2. 1
      src/ui/ui_fsm.cpp

@ -33,7 +33,7 @@ Screen::Screen()
lv_obj_center(alert_); lv_obj_center(alert_);
lv_obj_set_style_bg_opa(modal_content_, LV_OPA_TRANSP, 0); lv_obj_set_style_bg_opa(modal_content_, LV_OPA_TRANSP, 0);
lv_obj_set_style_bg_color(modal_content_, lv_color_black(), 0); lv_obj_set_style_bg_opa(alert_, LV_OPA_TRANSP, 0);
// Disable wrapping by default, since it's confusing and generally makes it // Disable wrapping by default, since it's confusing and generally makes it
// harder to navigate quickly. // harder to navigate quickly.

@ -457,6 +457,7 @@ void Lua::entry() {
sAlertTimer = xTimerCreate("ui_alerts", pdMS_TO_TICKS(1000), false, NULL, sAlertTimer = xTimerCreate("ui_alerts", pdMS_TO_TICKS(1000), false, NULL,
alert_timer_callback); alert_timer_callback);
sAlertContainer = lv_obj_create(sCurrentScreen->alert()); sAlertContainer = lv_obj_create(sCurrentScreen->alert());
lv_obj_set_style_bg_opa(sAlertContainer, LV_OPA_TRANSP, 0);
auto& registry = lua::Registry::instance(*sServices); auto& registry = lua::Registry::instance(*sServices);
sLua = registry.uiThread(); sLua = registry.uiThread();

Loading…
Cancel
Save