Misc improvements

This commit is contained in:
2021-10-13 22:36:50 +03:00
parent c0c6263e2c
commit 4fc372266c
4 changed files with 9 additions and 9 deletions
@@ -1,6 +1,6 @@
v3_badge: v3_badge:
variables: variables:
state_size: 15px state_size: 14px
show_name: false show_name: false
show_icon: false show_icon: false
show_state: true show_state: true
@@ -29,7 +29,7 @@ v3_button:
- bottom: 10px - bottom: 10px
- left: 16px - left: 16px
- font-weight: bold - font-weight: bold
- font-size: 13px - font-size: 14px
- color: "[[[ return variables.value_has_error ? 'red' : 'white' ]]]" - color: "[[[ return variables.value_has_error ? 'red' : 'white' ]]]"
name: name:
- position: absolute - position: absolute
@@ -51,7 +51,7 @@ v3_button:
icon: icon:
- color: var(--primary-color) - color: var(--primary-color)
state: state:
- color: "[[[ return variables.value_has_error ? 'red' : 'black' ]]]" - color: "[[[ return variables.value_has_error ? 'red' : 'var(--v3-btn-state-color)' ]]]"
- value: 'home' - value: 'home'
styles: *on_styles styles: *on_styles
- value: 'recording' - value: 'recording'
@@ -47,7 +47,7 @@ v3_button_brita_water:
[[[ [[[
const remaining = states['input_number.brita_remaining_liters'].state; const remaining = states['input_number.brita_remaining_liters'].state;
const percent = remaining / 150 * 100; const percent = remaining / 150 * 100;
return percent > 65 ? 'black' : 'white'; return percent > 65 ? 'var(--primary-color)' : 'white';
]]] ]]]
- background-color: | - background-color: |
[[[ [[[
@@ -69,7 +69,7 @@ v3_button_brita_water:
const remaining = states['input_number.brita_remaining_liters'].state; const remaining = states['input_number.brita_remaining_liters'].state;
const percent = remaining / 150 * 100; const percent = remaining / 150 * 100;
return percent > 10 ? 'black' : 'white'; return percent > 10 ? 'var(--v3-btn-state-color)' : 'white';
]]] ]]]
- background-color: | - background-color: |
[[[ [[[
@@ -49,15 +49,15 @@
entity: scene.living_room_ambient_neon entity: scene.living_room_ambient_neon
name: Neon name: Neon
variables: variables:
scene_color_1: rgba(255, 0, 190, 0.7) scene_color_1: rgba(255, 0, 190, 1)
scene_color_2: rgba(0, 255, 190, 0.7) scene_color_2: rgba(0, 255, 190, 1)
- type: custom:button-card - type: custom:button-card
template: v3_scene template: v3_scene
entity: scene.living_room_ambient_default entity: scene.living_room_ambient_default
name: Warm name: Warm
variables: variables:
scene_color_1: rgba(240, 240, 190, 0.7) scene_color_1: rgba(240, 240, 190, 1)
scene_color_2: rgba(255, 210, 170, 0.7) scene_color_2: rgba(255, 210, 170, 1)
- type: custom:decluttering-card - type: custom:decluttering-card
template: v3_section_title template: v3_section_title
variables: variables: