Climate default icon. Icon colors fix
This commit is contained in:
@ -4,6 +4,7 @@ class Entity {
|
|||||||
static const STATE_ICONS_COLORS = {
|
static const STATE_ICONS_COLORS = {
|
||||||
"on": Colors.amber,
|
"on": Colors.amber,
|
||||||
"off": Color.fromRGBO(68, 115, 158, 1.0),
|
"off": Color.fromRGBO(68, 115, 158, 1.0),
|
||||||
|
"default": Color.fromRGBO(68, 115, 158, 1.0),
|
||||||
"unavailable": Colors.black12,
|
"unavailable": Colors.black12,
|
||||||
"unknown": Colors.black12,
|
"unknown": Colors.black12,
|
||||||
"playing": Colors.amber
|
"playing": Colors.amber
|
||||||
@ -282,7 +283,7 @@ class _EntityWidgetState extends State<EntityWidget> {
|
|||||||
child: MaterialDesignIcons.createIconWidgetFromEntityData(
|
child: MaterialDesignIcons.createIconWidgetFromEntityData(
|
||||||
widget.entity,
|
widget.entity,
|
||||||
Entity.ICON_SIZE,
|
Entity.ICON_SIZE,
|
||||||
Entity.STATE_ICONS_COLORS[widget.entity.state] ?? Colors.blueGrey),
|
Entity.STATE_ICONS_COLORS[widget.entity.state] ?? Entity.STATE_ICONS_COLORS["default"]),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@ class MaterialDesignIcons {
|
|||||||
"input_text": "mdi:textbox",
|
"input_text": "mdi:textbox",
|
||||||
"sun": "mdi:white-balance-sunny",
|
"sun": "mdi:white-balance-sunny",
|
||||||
"scene": "mdi:google-pages",
|
"scene": "mdi:google-pages",
|
||||||
"media_player": "mdi:cast"
|
"media_player": "mdi:cast",
|
||||||
|
"climate": "mdi:thermostat"
|
||||||
};
|
};
|
||||||
|
|
||||||
static Map _defaultIconsByDeviceClass = {
|
static Map _defaultIconsByDeviceClass = {
|
||||||
|
Reference in New Issue
Block a user