Minor fixes

custom
ailurux 1 year ago
parent 489fbceb2b
commit bf58cb7acf
  1. 2
      lua/browser.lua
  2. 2
      src/lua/lua_theme.cpp

@ -43,7 +43,7 @@ return screen:new {
pad_right = 4, pad_right = 4,
pad_bottom = 2, pad_bottom = 2,
bg_opa = lvgl.OPA(100), bg_opa = lvgl.OPA(100),
scrollbar_mode = lvgl.SCROLLBAR_MODE.OFF, scrollbar_mode = lvgl.SCROLLBAR_MODE.OFF,
} }
theme.set_style(header, "header") theme.set_style(header, "header")

@ -59,7 +59,7 @@ static auto set_theme(lua_State* L) -> int {
// Style // Style
lv_style_t* style = luavgl_to_style(L, -1); lv_style_t* style = luavgl_to_style(L, -1);
if (style == NULL) { if (style == NULL) {
ESP_LOGI("DANIEL", "Style was null or malformed??"); ESP_LOGI(kTag, "Style was null or malformed");
return 0; return 0;
} else { } else {
ui::themes::Theme::instance()->AddStyle(class_name, selector, style); ui::themes::Theme::instance()->AddStyle(class_name, selector, style);

Loading…
Cancel
Save