fix(color): Clear Lua lcd buffer and display 'Loading...' (#2916)
* Clear LCD buffer before use for standalone Lua scripts. * Fix rebase merge issues. * Add translation. * Add translation. * Add translations. * Add translation/ Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
This commit is contained in:
@@ -56,6 +56,8 @@ StandaloneLuaWindow::StandaloneLuaWindow() :
|
||||
lcdBuffer(BMP_RGB565, LCD_W, LCD_H),
|
||||
popup({50, 73, LCD_W - 100, LCD_H - 146})
|
||||
{
|
||||
lcdBuffer.clear();
|
||||
lcdBuffer.drawText(LCD_W / 2, LCD_H / 2 - 20, STR_LOADING, FONT(L)|COLOR_THEME_PRIMARY2|CENTERED);
|
||||
lv_obj_clear_flag(lvobj, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_clear_flag(lvobj, LV_OBJ_FLAG_CLICK_FOCUSABLE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user