refactor(color): UI code cleanup, speed up loading of complex pages (#5031)
This commit is contained in:
@@ -735,7 +735,7 @@ void displayLuaError(bool firstCall = false)
|
||||
|
||||
coord_t w = 0.75 * LCD_W;
|
||||
coord_t left = (LCD_W - w) / 2;
|
||||
#if (LCD_W > LCD_H)
|
||||
#if (!PORTRAIT_LCD)
|
||||
coord_t hh = getFontHeight(FONT(XL)) + 4;
|
||||
#else
|
||||
coord_t hh = getFontHeight(FONT(L)) + 4;
|
||||
@@ -750,7 +750,7 @@ void displayLuaError(bool firstCall = false)
|
||||
|
||||
luaLcdBuffer->drawSolidFilledRect(left, top - hh, w, hh, COLOR_THEME_SECONDARY1);
|
||||
luaLcdBuffer->drawSolidFilledRect(left, top, w, h, COLOR_THEME_SECONDARY3);
|
||||
#if (LCD_W > LCD_H)
|
||||
#if (!PORTRAIT_LCD)
|
||||
luaLcdBuffer->drawText(left + 10, top - hh + 2, title, FONT(XL) | COLOR_THEME_PRIMARY2);
|
||||
luaLcdBuffer->drawTextLines(left + 10, top + 5, w - 20, h - 10, lua_warning_info, FONT(L) | COLOR_THEME_PRIMARY1);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user