1
1
---
2
- custom_card_andyblac_status_icon_only :
3
- # v1.1
2
+ custom_card_andyblac_count_info :
3
+ # v1.2. 1
4
4
template :
5
5
- " ulm_translation_engine"
6
6
variables :
7
+ ulm_custom_card_andyblac_count_info_badge_bg : true
7
8
tap_action :
8
- action : " navigate"
9
+ action : " [[[ return entity?.attributes?.navigation ? ' navigate' : 'more-info'; ]]] "
9
10
navigation_path : " [[[ return entity?.attributes?.navigation ? entity?.attributes?.navigation : 'none'; ]]]"
10
11
hold_action :
11
12
action : " more-info"
@@ -44,7 +45,6 @@ custom_card_andyblac_status_icon_only:
44
45
service : " [[[ return variables.hold_action.service; ]]]"
45
46
service_data : " [[[ return variables.hold_action.service_data; ]]]"
46
47
47
-
48
48
state :
49
49
- value : " unavailable"
50
50
styles :
@@ -59,43 +59,42 @@ custom_card_andyblac_status_icon_only:
59
59
- background-color : " rgba(var(--color-red),1)"
60
60
- styles :
61
61
label :
62
- - color : " [[[ return variables.ulm_card_status_color ? 'rgba(var(--color-'+variables.ulm_card_status_color +'),1)' : 'rgba(var(--color-theme),0.7 )'; ]]]"
62
+ - color : " [[[ return 'rgba(var(--color-'+variables.ulm_custom_card_andyblac_count_info_color_on +'),1)'; ]]]"
63
63
- background-color : >
64
- [[[
65
- if (variables.ulm_card_status_badge_bg ) {
66
- return variables.ulm_card_status_color ? 'rgba(var(--color-'+variables.ulm_card_status_color +'),0.2)' : 'rgba(var(--color-theme),0.2 )';
64
+ [[[
65
+ if (variables.ulm_custom_card_andyblac_count_info_badge_bg ) {
66
+ return variables.ulm_custom_card_andyblac_count_info_color_on ? 'rgba(var(--color-'+variables.ulm_custom_card_andyblac_count_info_color_on +'),0.2)' : 'rgba(var(--color-theme),0.15 )';
67
67
} else {
68
- return variables.ulm_card_status_color ? 'rgba(var(--color-'+variables.ulm_card_status_color+'),0.0)' : 'rgba(var(--color-theme),0.0)';
68
+ return 'none';
69
69
}
70
70
]]]
71
71
icon :
72
- - color : " [[[ return variables.ulm_card_status_color ? 'rgba(var(--color-'+variables.ulm_card_status_color +'),1)' : 'rgba(var(--color-theme),0.7)'; ]]]"
72
+ - color : " [[[ return variables.ulm_custom_card_andyblac_count_info_color_on ? 'rgba(var(--color-'+variables.ulm_custom_card_andyblac_count_info_color_on +'),1)' : 'rgba(var(--color-theme),0.7)'; ]]]"
73
73
img_cell :
74
- - background-color : " [[[ return variables.ulm_card_status_color ? 'rgba(var(--color-'+variables.ulm_card_status_color +'),0.2)' : 'rgba(var(--color-theme),0.2 )'; ]]]"
74
+ - background-color : " [[[ return variables.ulm_custom_card_andyblac_count_info_color_on ? 'rgba(var(--color-'+variables.ulm_custom_card_andyblac_count_info_color_on +'),0.2)' : 'rgba(var(--color-theme),0.15 )'; ]]]"
75
75
id : " on"
76
76
value : " [[[ return variables.ulm_active_state ]]]"
77
77
78
78
styles :
79
79
label :
80
- - font-weight : " bold"
81
- - font-size : " 90%"
82
- - border-radius : " [[[ return variables.ulm_card_status_badge_bg ? '50%' : '0%'; ]]]"
83
80
- position : " absolute"
84
- - right : " 6%"
85
- - top : " [[[ return variables.ulm_card_status_badge_bg ? '2%' : '0%'; ]]]"
86
- - height : " 30%"
87
- - width : " 30%"
88
- - line-height : " 24px"
89
- - color : " rgba(var(--color-theme),0.2)"
90
- - background-color : " rgba(var(--color-theme),0)"
81
+ - top : " 3px"
82
+ - right : " 3px"
83
+ - height : " 20px"
84
+ - width : " 20px"
85
+ - font-weight : " bold"
86
+ - font-size : " 16px"
87
+ - color : " rgba(var(--color-theme),0.4)"
88
+ - background-color : " rgba(var(--color-theme),0.05)"
89
+ - border-radius : " 50%"
91
90
icon :
92
91
- color : " rgba(var(--color-theme),0.2)"
93
92
img_cell :
94
- - background-color : " rgba(var(--color-theme),0.05)"
95
- - border-radius : " 50%"
96
93
- position : " absolute"
97
94
- left : " -18%"
98
95
- top : " 18%"
96
+ - background-color : " rgba(var(--color-theme),0.05)"
97
+ - border-radius : " 50%"
99
98
card :
100
99
- border-radius : " 15px"
101
100
- box-shadow : " var(--box-shadow)"
0 commit comments