Skip to content

Commit 27ef7a1

Browse files
committed
Add soundvolume_mute icon #289
1 parent badfb42 commit 27ef7a1

5 files changed

Lines changed: 32 additions & 0 deletions

File tree

resources/edge/icons-widgets/icons-widgets.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@
102102
<bitmap id="menuSoundVolume07" scaleX="13%" filename="../../icons-widgets/soundvolume-07.svg" dithering="none"/>
103103
<bitmap id="menuSoundVolume10" scaleX="13%" filename="../../icons-widgets/soundvolume-10.svg" dithering="none"/>
104104

105+
<bitmap id="menuSoundVolumeMuteOn" scaleY="13%" filename="../../icons-widgets/soundvolume-mute-on.svg" dithering="none"/>
106+
<bitmap id="menuSoundVolumeMuteOff" scaleY="13%" filename="../../icons-widgets/soundvolume-mute-off.svg" dithering="none"/>
107+
105108
<bitmap id="menuTemperature" scaleX="12%" filename="../../icons-widgets/temperature.svg" dithering="none"/>
106109

107110
<bitmap id="menuWindowClosed" scaleX="14%" filename="../../icons-widgets/window-closed.svg" dithering="none"/>

resources/icons-widgets/_icons-widgets.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
<bitmap id="menuSoundVolume07" scaleY="12%" filename="soundvolume-07.svg" dithering="none"/>
9595
<bitmap id="menuSoundVolume10" scaleY="12%" filename="soundvolume-10.svg" dithering="none"/>
9696

97+
<bitmap id="menuSoundVolumeMuteOn" scaleY="12%" filename="soundvolume-mute-on.svg" dithering="none"/>
98+
<bitmap id="menuSoundVolumeMuteOff" scaleY="12%" filename="soundvolume-mute-off.svg" dithering="none"/>
99+
97100
<bitmap id="menuTemperature" scaleY="12%" filename="temperature.svg" dithering="none"/>
98101

99102
<bitmap id="menuWindowClosed" scaleY="11%" filename="window-closed.svg" dithering="none"/>
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading

source/main/data/sitemap/widgets/base/IconParser.mc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ class IconParser {
278278
}
279279
}
280280

281+
case "soundvolume_mute": {
282+
if( itemState.equals( SwitchItem.ITEM_STATE_ON ) ) {
283+
return Rez.Drawables.menuSoundVolumeMuteOn;
284+
} else {
285+
return Rez.Drawables.menuSoundVolumeMuteOff;
286+
}
287+
}
288+
281289
case "motion": return Rez.Drawables.menuMotion;
282290

283291
case "heating": {

0 commit comments

Comments
 (0)