xenolightning / AudioSwitcher_v1

Version 1 of Audio Switcher
Microsoft Public License
894 stars 90 forks source link

Playback device tray icon uses wrong size #2158

Open upthekhyber opened 7 years ago

upthekhyber commented 7 years ago

I'm using version 1.7.0.117 on Windows 7 (64-bit). I have noticed a minor issue regarding the AudioSwitcher tray icon when the Show Default Playback Device icon in tray option is enabled.

On Windows 7 the default size for tray icons is 16x16 pixels (100% text size (DPI)). Let's assume the icon file I'm using for my playback device includes icons in 16, 24 and 32px variants. The proper icon to use in the tray would be the one that is 16px. AudioSwitcher, however, uses the 32px icon (scaled down by Windows to 16px), which looks bad. According to my tests, a 16x16 icon will only ever be used when it's the only icon in the icon file, or the other icons in the file are larger than 48x48.