Use accurate icons for headphones and headsets
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 3 Oct 2021 10:18:34 +0000 (12:18 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
While these icon names are not part of the spec standard names [0] they
are in practice implemented by at least Adwaita, Gnome, Oxygen, Arc and Breeze
themes.

[0] https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/dbus-common.c

index 384f277..5e2c83d 100755 (executable)
@@ -72,9 +72,9 @@ const char *class_to_icon(uint32_t class)
                switch ((class & 0xfc) >> 2) {
                case 0x01:
                case 0x02:
-                       return "audio-card";    /* Headset */
+                       return "audio-headset";
                case 0x06:
-                       return "audio-card";    /* Headphone */
+                       return "audio-headphones";
                case 0x0b: /* VCR */
                case 0x0c: /* Video Camera */
                case 0x0d: /* Camcorder */