- Sliders now show a tooltip with the current slider value when held down on, similar to native sliders.
- Can be disabled by setting
tooltip
to false in a slider custom action.
- Can be disabled by setting
- Better slider on/off class change logic.
- Fixed slider ID logic bug which would cause multiple sliders in different copies of the same card to use the same slider ID or not work at all #67.
- And another issue where default actions were being overwritten in one copy of this card and those changes showing up in another.
- Renamed the following options:
enable_button_feedback
->button_haptics
.enable_touchpad_feedback
->touchpad_haptics
.
- Deprecated the following slider fields in favor of moving them to a slider custom action.
slider_range
->custom_actions.slider.range
.slider_style
->custom_actions.slider.style
.slider_attribute
->custom_actions.slider.value_attribute
.enable_slider_feedback
->custom_actions.slider.haptics
.
- Added
step
option to slider custom action. - Added custom action
haptics
option to enable or disable haptics for an individual button.
custom_actions:
slider:
range:
- 0.5
- 1
step: 0.1
value_attribute: brightness # defaults to volume_level
tooltip: true # defaults to true so you don't really need this line
haptics: false # defaults to true
style:
'--border-radius': 4px
Full Changelog: 3.4.0...3.5.0-beta.004