openHASP
openHASP copied to clipboard
text_line_space01 does not seem to work with toggle state
Perform all steps below and tick them with [x]
- [X ] Check the related part of the Documentation
- [X ] Update openHASP to the latest version
- [X ] Reproduce the issue and describe all steps
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