@@ -310,6 +310,54 @@ Attribute name|LVGL equivalent|Details
310
310
` qr_light_color ` ||Color used for the light pixels. This cannot be changed once the object is created.
311
311
` qr_text ` ||(mandatory) String to encode as a QRCode, can be changed at any moment.
312
312
313
+ ## HASPmota styling
314
+
315
+ Since v13.2.0.1, HASPmota includes styling extensions replicating [ OpenHASP Styling Properties] ( https://www.openhasp.com/0.6.3/design/styling/ ) .
316
+
317
+ Styling attributes can include a 2-digit suffix to indicate which element and which state the styling attributes refers to:
318
+
319
+ The part indexes are:
320
+
321
+ - 00 = main part of the object (i.e. the background)
322
+ - 10 = the indicator or needle, highlighting the the current value
323
+ - 20 = the knob which can be used the change the value
324
+ - 30 = the background of the items/buttons
325
+ - 40 = the items/buttons (not implemented yet)
326
+ - 50 = the selected item
327
+ - 60 = major ticks of the gauge object
328
+ - 70 = the text cursor
329
+ - 80 = the scrollbar
330
+ - 90 = other special part, not listed above
331
+
332
+ The state indexes:
333
+
334
+ - 00 = default styling
335
+ - 01 = styling for toggled state
336
+ - 02 = styling for pressed, not toggled state
337
+ - 03 = styling for pressed and toggled state
338
+ - 04 = styling for disabled not toggled state
339
+ - 05 = styling for disabled and toggled state
340
+
341
+ A ` toggle ` ` btn ` can be made to show ` text ` ` yellow ` when toggled ON with ` "text_color":"white","text_color01":"yellow" `
342
+
343
+ The following attributes accept styling suffix:
344
+
345
+ - ` radius `
346
+ - ` border_side `
347
+ - ` border_width `
348
+ - ` border_color `
349
+ - ` line_width `
350
+ - ` bg_color `
351
+ - ` bg_grad_color `
352
+ - ` bg_grad_dir `
353
+ - ` line_color `
354
+ - ` pad_left `
355
+ - ` pad_right `
356
+ - ` pad_top `
357
+ - ` pad_bottom `
358
+ - ` pad_all `
359
+ - ` text_color `
360
+
313
361
## Tasmota extensions
314
362
315
363
### Update sensor value via rules
0 commit comments