mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Update icons for shade device class (#14455)
* Update icons for shade device class MDI v6.7.96 added icons for roller-shade and roller-shade-closed - this changes shade device class to match, rather than blinds/blinds-open. * Split blind/shade device classes and update blind icons
This commit is contained in:
parent
06c1d9f6ef
commit
5c452cb9e0
@ -12,8 +12,10 @@ import {
|
|||||||
mdiCircle,
|
mdiCircle,
|
||||||
mdiWindowShutter,
|
mdiWindowShutter,
|
||||||
mdiWindowShutterOpen,
|
mdiWindowShutterOpen,
|
||||||
mdiBlinds,
|
mdiBlindsHorizontal,
|
||||||
mdiBlindsOpen,
|
mdiBlindsHorizontalClosed,
|
||||||
|
mdiRollerShade,
|
||||||
|
mdiRollerShadeClosed,
|
||||||
mdiWindowClosed,
|
mdiWindowClosed,
|
||||||
mdiWindowOpen,
|
mdiWindowOpen,
|
||||||
mdiArrowExpandHorizontal,
|
mdiArrowExpandHorizontal,
|
||||||
@ -79,6 +81,16 @@ export const coverIcon = (state?: string, stateObj?: HassEntity): string => {
|
|||||||
return mdiCurtains;
|
return mdiCurtains;
|
||||||
}
|
}
|
||||||
case "blind":
|
case "blind":
|
||||||
|
switch (state) {
|
||||||
|
case "opening":
|
||||||
|
return mdiArrowUpBox;
|
||||||
|
case "closing":
|
||||||
|
return mdiArrowDownBox;
|
||||||
|
case "closed":
|
||||||
|
return mdiBlindsHorizontalClosed;
|
||||||
|
default:
|
||||||
|
return mdiBlindsHorizontal;
|
||||||
|
}
|
||||||
case "shade":
|
case "shade":
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case "opening":
|
case "opening":
|
||||||
@ -86,9 +98,9 @@ export const coverIcon = (state?: string, stateObj?: HassEntity): string => {
|
|||||||
case "closing":
|
case "closing":
|
||||||
return mdiArrowDownBox;
|
return mdiArrowDownBox;
|
||||||
case "closed":
|
case "closed":
|
||||||
return mdiBlinds;
|
return mdiRollerShadeClosed;
|
||||||
default:
|
default:
|
||||||
return mdiBlindsOpen;
|
return mdiRollerShade;
|
||||||
}
|
}
|
||||||
case "window":
|
case "window":
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user