EdgeTX / edgetx

EdgeTX is the cutting edge open source firmware for your R/C radio
https://edgetx.org
GNU General Public License v2.0
1.62k stars 341 forks source link

LVGL line should supported dashed lines #5680

Open arunh opened 8 hours ago

arunh commented 8 hours ago

Is there an existing issue for this feature request?

Is your feature request related to a problem?

The new LVGL Lua API coming in 2.11 does not support a way to draw dashed lines. This is a useful graphical device and used by a number of widgets, and makes it hard to port a widget to the new library if it needs this functionality.

Describe the solution you'd like

The LVGL library itself has support for dotted and dashed lines so this just needs to be exposed in the EdgeTx Lua API.

https://docs.lvgl.io/8/overview/style-props.html#line-dash-width https://docs.lvgl.io/8/overview/style-props.html#line-dash-gap

Describe alternatives you've considered

No response

Additional context

No response

philmoz commented 8 hours ago

In LVGL dash gap and dash width only work for horizontal and vertical lines.

If that limitation is acceptable I can add these as properties to the 'hline' and 'vline' types.

arunh commented 8 hours ago

Horizontal and vertical is acceptable. Thank you.

On Fri, 22 Nov 2024 at 10:01, philmoz @.***> wrote:

In LVGL dash gap and dash width only work for horizontal and vertical lines.

If that limitation is acceptable I can add these as properties to the 'hline' and 'vline' types.

— Reply to this email directly, view it on GitHub https://github.com/EdgeTX/edgetx/issues/5680#issuecomment-2493376557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGENYTUSYLAYPVSD34J77L2B36IXAVCNFSM6AAAAABSI6CBOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJTGM3TMNJVG4 . You are receiving this because you authored the thread.Message ID: @.***>