diff --git a/radio/src/lua/lua_lvgl_widget.cpp b/radio/src/lua/lua_lvgl_widget.cpp index 851780310..d083fd254 100644 --- a/radio/src/lua/lua_lvgl_widget.cpp +++ b/radio/src/lua/lua_lvgl_widget.cpp @@ -800,11 +800,16 @@ bool LvglWidgetLine::callRefs(lua_State *L) int t = lua_gettop(L); if (getPointsFunction != LUA_REFNIL) { if (pcallFunc(L, getPointsFunction, 1)) { + bool firstPts = (pts == nullptr); uint32_t h = getPts(L); if (h != ptsHash) { ptsHash = h; setLine(); } + if (firstPts) { + setColor(color.flags); + setOpacity(opacity.value); + } lua_settop(L, t); } else { return false;