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

7

12

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!

Colombo answered 20/8, 2010 at 13:27 Comment(0)
C
13

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

Calabro answered 20/8, 2010 at 13:35 Comment(3)
Can you explain how to do this?Arrear
basically you create a .ico at 256x256 and it will be scale down automatically by the OSAntetype
icon sushi is a free tool to create .ico files from appropriate pngs. Add them in order of size, 256, 48, 32, 16.Stefan
B
13

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.

Beaming answered 6/1, 2011 at 6:17 Comment(2)
Good info. I made a hand-drawn 16x16 icon, with "sharp" edges (no aliasing) and it doesn't really look right in my system tray. It's just barely shrinking it, probably by 2 to 4 pixels. Not sure there's any solving this, except to add some aliasing.Orleans
After changing dpi I still get the same (16). My question.Architectonic
C
3

For XP it's 16 x 16

Curium answered 20/8, 2010 at 13:33 Comment(0)
B
2

In ubuntu (unity) it seems to be 24x24 px.

Brogle answered 26/2, 2018 at 22:37 Comment(0)
S
2

Windows 7 has 16*16 pixels icons in system tray.

Saturninasaturnine answered 27/2, 2018 at 15:5 Comment(0)
S
1

Outlook has an 16*16 pixels icon.

Solorio answered 20/8, 2010 at 13:34 Comment(0)
F
1

I believe it has always been 16x16, but at some point between 98 and XP (Maybe it was CE vs NT?) they learned to support full color and alpha transparency. If you can, try to include a 256 color palleted version in the ICO for safe mode if not older versions of Windows.

Fianna answered 20/8, 2010 at 17:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.