HASwitchPlate / openHASP

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

text_line_space01 does not seem to work with toggle state #571

Open smcgann99 opened 1 year ago

smcgann99 commented 1 year ago

Perform all steps below and tick them with [x]

Describe the bug

text_line_space01 does not have any effect when a button is toggled

To Reproduce

Provide a small, independent code sample that can be used to reproduce the issue. Format the code like this:

    "page": 3,
    "id": 1,
    "obj": "btn",
    "w": 150,
    "h": 110,
    "x": 330,
    "y": 136,
    "text": "\n",
    "value_str": "Pump",
    "groupid": 2,
    "toggle": 1,
    "text_color01": "#dea031",
    "bg_color01": "#404040",
    "text_line_space": -20,
    "text_line_space01": -40,
    "border_side01": 2,
    "border_color01": "#5d5d5d",
    "value_ofs_y": 26,
    "value_ofs_y01": 36,
    "value_color01": "#a4a4a4",
    "bg_color": "#515151",
    "bg_opa": 255,
    "border_opa": 255,
    "border_side": 1,
    "border_width": 11,
    "border_color": "#393939",
    "radius": 8,
    "text_font": 58,
    "text_color": "#bfbfbf",
    "value_font": 30,
    "value_color": "#bfbfbf"
}

Expected behavior

In the example above when the button is toggled on the icon should move down.

Screenshots or video

https://discord.com/channels/538814618106331137/692393568266092617/1171594781873410088