Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/code/icon.js
Show All 35 Lines | 21 | function name(volume, muted, prefix) { | |||
---|---|---|---|---|---|
36 | return icon; | 36 | return icon; | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | function formFactorIcon(formFactor) { | 39 | function formFactorIcon(formFactor) { | ||
40 | switch(formFactor) { | 40 | switch(formFactor) { | ||
41 | case "internal": | 41 | case "internal": | ||
42 | return "audio-card"; | 42 | return "audio-card"; | ||
43 | case "speaker": | 43 | case "speaker": | ||
44 | case "analog-output-speaker": | ||||
44 | return "audio-speakers-symbolic"; | 45 | return "audio-speakers-symbolic"; | ||
45 | case "phone": | 46 | case "phone": | ||
46 | return "phone"; | 47 | return "phone"; | ||
47 | case "handset": | 48 | case "handset": | ||
48 | return "phone"; | 49 | return "phone"; | ||
49 | case "tv": | 50 | case "tv": | ||
50 | return "video-television"; | 51 | return "video-television"; | ||
51 | case "webcam": | 52 | case "webcam": | ||
52 | return "camera-web"; | 53 | return "camera-web"; | ||
53 | case "microphone": | 54 | case "microphone": | ||
54 | return "audio-input-microphone"; | 55 | return "audio-input-microphone"; | ||
55 | case "headset": | 56 | case "headset": | ||
56 | return "audio-headset"; | 57 | return "audio-headset"; | ||
57 | case "headphone": | 58 | case "headphone": | ||
59 | case "analog-output-headphones": | ||||
58 | return "audio-headphones"; | 60 | return "audio-headphones"; | ||
59 | case "hands-free": | 61 | case "hands-free": | ||
60 | return "hands-free"; | 62 | return "hands-free"; | ||
61 | case "car": | 63 | case "car": | ||
62 | return "car"; | 64 | return "car"; | ||
63 | case "hifi": | 65 | case "hifi": | ||
64 | return "hifi"; | 66 | return "hifi"; | ||
65 | case "computer": | 67 | case "computer": | ||
66 | return "computer"; | 68 | return "computer"; | ||
67 | case "portable": | 69 | case "portable": | ||
68 | return "portable"; | 70 | return "portable"; | ||
69 | } | 71 | } | ||
70 | return ""; | 72 | return ""; | ||
71 | } | 73 | } |