local root = lvgl.Object()

local width = 336
local height = 480

--root:set { w = lvgl.HOR_RES(), h = lvgl.VER_RES() }
root:set { w = width, h = height, pad_all = 0, scrollbar_mode = 0 }

local bg = root:Image {
   src = SCRIPT_PATH .. "assets/bg.png",
   x = 0,
   y = 0,
   pad_all = 0
}

local day = bg:Label {
    x = 190,
    y = 100,
    text = string.format("%02d", 15),
    text_font = lvgl.Font("montserrat", 20, "normal"),
    -- or builtin font:
    -- text_font = lvgl.BUILTIN_FONT.MONTSERRAT_22,
    text_color = '#eeeeee'
}

Изменить пасту