HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
726 stars 185 forks source link

Weird arc behaviour #636

Closed Elix-g closed 8 months ago

Elix-g commented 9 months ago

Perform all steps below and tick them with [x]

Describe the bug

I'm currently playing around with arc and its style properties. There are properties to define start and end angle of the arc background and the arc indicator. Setting them to identical values or omitting start_angle10 and end_angle10 results in some nice arc as expected. Setting different values, to make the indicator smaller than the background, does not work as expected. Hardware is WirelessTag WT32 SC01 Plus running openHASP 0.7.0-rc10, 180 degree display rotation

To Reproduce

following values lead to identical arcs:

{"id":51, "obj":"arc", "x":10, "y":140, "h":150, "w":150, "max":70,  "start_angle":90, "end_angle":315, "bg_color":"black", "border_side":0, "click":0, "value_font":48, "value_ofs_x":50, "value_ofs_y":5}
{"id":51, "obj":"arc", "x":10, "y":140, "h":150, "w":150, "max":70,  "start_angle":135, "end_angle":315, "start_angle10":90, "end_angle10":315, "bg_color":"black", "border_side":0, "click":0, "value_font":48, "value_ofs_x":50, "value_ofs_y":5}

image

Expected behavior

When setting the indicator to smaller values than the background, arc background should be shown. Instead, the indicator still starting at the same angle like without its parameters.

Screenshots or video

Please see above and ignore the additional line in the screenshots

Elix-g commented 8 months ago

Nobody takes care, so closed