mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Use new mdi oscillating icon (#19410)
This commit is contained in:
parent
13a8b10f5c
commit
df2514d79f
@ -2,6 +2,8 @@ import {
|
||||
mdiAccountArrowRight,
|
||||
mdiArrowAll,
|
||||
mdiArrowLeftRight,
|
||||
mdiArrowOscillating,
|
||||
mdiArrowOscillatingOff,
|
||||
mdiArrowUpDown,
|
||||
mdiBed,
|
||||
mdiCircleMedium,
|
||||
@ -31,8 +33,6 @@ import {
|
||||
HassEntityAttributeBase,
|
||||
HassEntityBase,
|
||||
} from "home-assistant-js-websocket";
|
||||
import { haOscillatingOff } from "./icons/haOscillatingOff";
|
||||
import { haOscillating } from "./icons/haOscillating";
|
||||
|
||||
export const HVAC_MODES = [
|
||||
"auto",
|
||||
@ -203,8 +203,8 @@ type ClimateBuiltInSwingMode =
|
||||
|
||||
export const CLIMATE_SWING_MODE_ICONS: Record<ClimateBuiltInSwingMode, string> =
|
||||
{
|
||||
on: haOscillating,
|
||||
off: haOscillatingOff,
|
||||
on: mdiArrowOscillating,
|
||||
off: mdiArrowOscillatingOff,
|
||||
vertical: mdiArrowUpDown,
|
||||
horizontal: mdiArrowLeftRight,
|
||||
both: mdiArrowAll,
|
||||
|
@ -1,2 +0,0 @@
|
||||
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";
|
@ -1,2 +0,0 @@
|
||||
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,5 +1,6 @@
|
||||
import "@material/mwc-list/mwc-list-item";
|
||||
import {
|
||||
mdiArrowOscillating,
|
||||
mdiFan,
|
||||
mdiThermometer,
|
||||
mdiThermostat,
|
||||
@ -26,7 +27,6 @@ import {
|
||||
computeSwingModeIcon,
|
||||
} from "../../../data/climate";
|
||||
import { UNAVAILABLE } from "../../../data/entity";
|
||||
import { haOscillating } from "../../../data/icons/haOscillating";
|
||||
import "../../../state-control/climate/ha-state-control-climate-humidity";
|
||||
import "../../../state-control/climate/ha-state-control-climate-temperature";
|
||||
import { HomeAssistant } from "../../../types";
|
||||
@ -260,7 +260,10 @@ class MoreInfoClimate extends LitElement {
|
||||
@selected=${this._handleSwingmodeChanged}
|
||||
@closed=${stopPropagation}
|
||||
>
|
||||
<ha-svg-icon slot="icon" .path=${haOscillating}></ha-svg-icon>
|
||||
<ha-svg-icon
|
||||
slot="icon"
|
||||
.path=${mdiArrowOscillating}
|
||||
></ha-svg-icon>
|
||||
${stateObj.attributes.swing_modes!.map(
|
||||
(mode) => html`
|
||||
<ha-list-item .value=${mode} graphic="icon">
|
||||
|
@ -1,4 +1,6 @@
|
||||
import {
|
||||
mdiArrowOscillating,
|
||||
mdiArrowOscillatingOff,
|
||||
mdiFan,
|
||||
mdiFanOff,
|
||||
mdiPower,
|
||||
@ -23,8 +25,6 @@ import {
|
||||
computeFanSpeedStateDisplay,
|
||||
} from "../../../data/fan";
|
||||
import { forwardHaptic } from "../../../data/haptics";
|
||||
import { haOscillating } from "../../../data/icons/haOscillating";
|
||||
import { haOscillatingOff } from "../../../data/icons/haOscillatingOff";
|
||||
import "../../../state-control/fan/ha-state-control-fan-speed";
|
||||
import "../../../state-control/ha-state-control-toggle";
|
||||
import type { HomeAssistant } from "../../../types";
|
||||
@ -260,12 +260,12 @@ class MoreInfoFan extends LitElement {
|
||||
>
|
||||
<ha-svg-icon
|
||||
slot="icon"
|
||||
.path=${haOscillatingOff}
|
||||
.path=${mdiArrowOscillatingOff}
|
||||
></ha-svg-icon>
|
||||
<ha-list-item value="true" graphic="icon">
|
||||
<ha-svg-icon
|
||||
slot="graphic"
|
||||
.path=${haOscillating}
|
||||
.path=${mdiArrowOscillating}
|
||||
></ha-svg-icon>
|
||||
${this.hass.formatEntityAttributeValue(
|
||||
this.stateObj,
|
||||
@ -276,7 +276,7 @@ class MoreInfoFan extends LitElement {
|
||||
<ha-list-item value="false" graphic="icon">
|
||||
<ha-svg-icon
|
||||
slot="graphic"
|
||||
.path=${haOscillatingOff}
|
||||
.path=${mdiArrowOscillatingOff}
|
||||
></ha-svg-icon>
|
||||
${this.hass.formatEntityAttributeValue(
|
||||
this.stateObj,
|
||||
|
Loading…
x
Reference in New Issue
Block a user