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:
philmoz
2022-12-28 10:15:10 +10:00
committed by GitHub
co-authored by Phil Mitchell
parent 8d5a509ce0
commit 277c1cae37
17 changed files with 18 additions and 2 deletions
@@ -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);