Move more button card button theming to modules

This commit is contained in:
2025-07-07 18:24:22 -04:00
parent 1a4cc3503a
commit 70eff59703

View File

@ -214,15 +214,9 @@ streamline_templates:
action: none
hold_action:
action: none
styles: |-
.is-unavailable {
opacity: 0.5 !important;
}
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--error-color)' : 'var(--background-color-2)'} !important;
transition: background-color 1s !important;
}
modules:
- default
- popup_security_button
popup_accent_color_button:
defaults:
- name: ''
@ -244,14 +238,14 @@ streamline_templates:
action: none
hold_action:
action: none
styles: |-
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important;
}
modules:
- default
- popup_accent_color_button
popup_temperature_button:
defaults:
- name: ''
- hot_entity: ''
- cold_entity: ''
card:
type: custom:bubble-card
card_type: button
@ -259,15 +253,12 @@ streamline_templates:
entity: '[[entity]]'
name: '[[name]]'
show_attribute: false
styles: |
.is-unavailable {
opacity: 0.5 !important;
}
.bubble-button-background {
opacity: 1 !important;
background-color: ${hass.states['[[hot_entity]]'].state === 'on' ? 'var(--error-color)' : 'var(--background-color-2)'} !important;
transition: background-color 1s !important;
}
modules:
- default
- popup_temperature_button
popup_temperature_button:
hot_entity: '[[hot_entity]]'
cold_entity: '[[cold_entity]]'
popup_timer_card:
defaults:
name: ''