mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Update oscillating icon (#15948)
This commit is contained in:
parent
77b227a7d1
commit
cd6aac85d2
2
src/data/icons/haOscillating.ts
Normal file
2
src/data/icons/haOscillating.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export const haOscillating =
|
||||
"M12,6C7.963,6 6,9.715 6,12L9,12L5,16L1,12L4,12C4,9.17 5.897,4 12.004,4C18.112,4 20.004,9.17 20.004,12L23.004,12L19.004,16L15.004,12L18.004,12C18.004,9.715 16.037,6 12,6Z";
|
2
src/data/icons/haOscillatingOff.ts
Normal file
2
src/data/icons/haOscillatingOff.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export const haOscillatingOff =
|
||||
"M 2.9003906,0.8203125 1.6289062,2.0917969 6.0566406,6.5195312 C 4.5643882,8.2344127 4,10.461887 4,12 H 1 l 4,4 4,-4 H 6 C 6,10.82424 6.5229215,9.2725296 7.578125,8.0410156 L 19.730469,20.193359 21.003906,18.921875 8.9394531,6.8574219 7.3964844,5.3164062 Z M 12.003906,4 C 10.899236,4 9.9346562,4.1709695 9.0917969,4.4648438 L 10.755859,6.1289062 C 11.146838,6.0472549 11.559859,6 12,6 c 4.036992,0 6.003906,3.7150046 6.003906,6 h -1.376953 l 3.189453,3.1875 3.1875,-3.1875 h -3 c 0,-2.8299944 -1.892012,-8 -8,-8 z";
|
@ -1,8 +1,6 @@
|
||||
import "@material/web/button/outlined-button";
|
||||
import "@material/web/iconbutton/outlined-icon-button";
|
||||
import {
|
||||
mdiAutorenew,
|
||||
mdiAutorenewOff,
|
||||
mdiCreation,
|
||||
mdiFan,
|
||||
mdiFanOff,
|
||||
@ -31,6 +29,8 @@ import "../../../components/ha-attributes";
|
||||
import { UNAVAILABLE } from "../../../data/entity";
|
||||
import { FanEntity, FanEntityFeature } from "../../../data/fan";
|
||||
import { forwardHaptic } from "../../../data/haptics";
|
||||
import { haOscillating } from "../../../data/icons/haOscillating";
|
||||
import { haOscillatingOff } from "../../../data/icons/haOscillatingOff";
|
||||
import type { HomeAssistant } from "../../../types";
|
||||
import {
|
||||
FAN_SPEED_COUNT_MAX_FOR_BUTTONS,
|
||||
@ -236,8 +236,8 @@ class MoreInfoFan extends LitElement {
|
||||
>
|
||||
<ha-svg-icon
|
||||
.path=${this.stateObj.attributes.oscillating
|
||||
? mdiAutorenew
|
||||
: mdiAutorenewOff}
|
||||
? haOscillating
|
||||
: haOscillatingOff}
|
||||
></ha-svg-icon>
|
||||
</md-outlined-icon-button>
|
||||
`
|
||||
|
Loading…
x
Reference in New Issue
Block a user