Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the size of the icons in the system tray? [duplicate]

I want to change the notification icon of my application but don't know what is the size so as to make it properly displayed. Currently it is automatically resized and break my pixels! Please help!

like image 591
Nam G VU Avatar asked Aug 20 '10 13:08

Nam G VU


People also ask

What size are system tray icons?

On Windows, the system tray icon size is 16x16; on X11, the preferred size is 22x22. The icon will be scaled to the appropriate size as necessary.

What is the systems tray icon?

The system tray (or "systray") is a section of the taskbars in the Microsoft Windows operating system (OS) user interface that provides easy access icons to the user's most commonly used apps and displays the clock. A system tray is also available in other OSes such as Linux, Mac OS, Android and iOS.

What size are Windows icons?

Icons have a maximum size of 256x256 pixels, making them suitable for high-dpi (dots per inch) displays.

How do I change the size of my system tray?

Right-click the taskbar and chose Taskbar settings. Locate the Use small taskbar buttons option from the right pane and select the button next to it. The taskbar will immediately become noticeably smaller.


3 Answers

In fact the size of the icon will vary according to the system DPI.

WPF exposes the recommended pixel width and height of small icons with SystemParameters.SmallIconWidth and SystemParameters.SmallIconHeight. (WinForms exposes the equivalent SystemInformation.SmallIconSize - both just wrap around GetSystemMetrics and SM_CXSMICON/SM_CYSMICON.)

Microsoft recommends including 16x16 and 32x32 pixel icons.

like image 142
Quppa Avatar answered Oct 22 '22 03:10

Quppa


It's 16x16. If you create a .ico file that supports 16, 32, 48 and 256 sizes, you're covered.

like image 21
Android Eve Avatar answered Oct 22 '22 04:10

Android Eve


For XP it's 16 x 16

like image 38
Fabian Fritz Avatar answered Oct 22 '22 04:10

Fabian Fritz