jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Ugly status bar icon #351

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Windows, SDL reduces the provided 32x32 icon to 16x16, to display it in
status bar.
Unfortunately, it's not possible to provide a custom icon.

I attach here an illustration of the normal icon (top line), with its
automatic reduction. The two icon sets below are some attempts that behave
better when reduced.

Original issue reported on code.google.com by yrizoud on 29 May 2010 at 10:46

Attachments:

GoogleCodeExporter commented 9 years ago
Mh... isn't it possible at all to provide a custom icon ? Note the .ico format 
is a 
cntainer in wich you can have several variations of the icon.
http://en.wikipedia.org/wiki/ICO_(file_format)

Can't we do that ? I believe there actually are smaller versions in ur .ico ? 
or was 
that lost at some point ? And does SDL support the ico format ? I don't 
remember ...

Anyway, the one we use for SDL is not the same as then one embedded in the app, 
so 
it shouldn't be too much of a problem. Beware : Win7 may use bigger icons in 
the 
taskbbar...

Original comment by pulkoma...@gmail.com on 30 May 2010 at 8:58

GoogleCodeExporter commented 9 years ago
Provide a specific smaller icon: on Win32, there's SetIcon(). I'm not sure I'll 
be
able to read the data from a ICO file, it looks very ugly format.

Indeed, the .ICO I made is complete, it contains 3 size: 16x16, 32x32, and 
48x48. For
the 16x16 I cheated, it reads GFX (instead of GRAFX).

Original comment by yrizoud on 30 May 2010 at 12:26

GoogleCodeExporter commented 9 years ago
Can't windows grab the icon from the .exe if it's in there, too ? It should be 
possible to create a resource file to do that...

Original comment by pulkoma...@gmail.com on 30 May 2010 at 12:52

GoogleCodeExporter commented 9 years ago
Done in r1493
Windows version now ignores the gfx2.gif
(Except if any problem happens while opening the executable resource: in this 
case,
it falls back to the general algorithm)
I am not very content with the code, there's probably memory leak etc.
But at least, if it breaks, it will break on startup.
In observation, for some time.

Original comment by yrizoud on 30 May 2010 at 6:49

GoogleCodeExporter commented 9 years ago
What if we made the 'large' icons out of double pixels? Would it scale down 
properly?
Sure, we'd sacrifice the detail of the large icon, but it IS a pixel app after 
all.
Also, it is very easy to change what icon is displayed for a program.

Original comment by ilija.melentijevic on 4 Aug 2010 at 2:12

GoogleCodeExporter commented 9 years ago
I fear modern versionsof windows will try to be clever and bork everything with 
blurry bilinear filtering…
The .ico format allows us to store multiple icons so I don't see why we 
shouldn't use it.

Original comment by pulkoma...@gmail.com on 4 Aug 2010 at 12:13

GoogleCodeExporter commented 9 years ago
As much as I enjoy many things that are old, I have to admit that pixelled 
things in vivid colors can clash very badly with smooth environments like the 
average user's desktop. The original Grafx2 icon is 32x32 using some of the 15 
EGA colors, and my reduction to 16x16 is simplified to mostly two-color (white 
inscription over blue cross). This is why I was really tempted to adopt, for 
all sizes, the smooth gradient icon from first post, with that pixelized top 
left that ironically reminds of serious industry - and allows this icon to stay 
discreet in the workplace :P

Note that even if you make a shortcut with another icon, Windows will still use 
the built-in icons (sizes 16 and 32) in the task bar and when you alt-tab.

Original comment by yrizoud on 4 Aug 2010 at 1:14

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 9 Aug 2010 at 9:41

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 22 Aug 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Marking this one as fixed, the issue was with the automatic reduction from 
32x32 to 16x16 and it is now avoided. Now if there's a urge to change the icon 
graphics, let's open an other issue.

Original comment by yrizoud on 18 Jan 2011 at 7:42