smarques7 / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 1 forks source link

Ugly upscaled icon in Windows 7 and incorrect context menu #469

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Arduino IDE
2. Right click the taskbar icon for Arduino IDE

What is the expected output? 
A nice/not resized icon and a context menu referencing Arduino.exe or just 
showing "Close" as the unique available option

What do you see instead?
You see a fuzzy icon (for 0022 and a java icon for previous releases) and an 
incorrect context menu (it references to javaw.exe, so if you pin the exe to 
the Windows 7 taskbar you will get an invalid reference)
http://content.screencast.com/users/eried/folders/Jing/media/aa2a12cd-09ec-417d-
a6c3-1a081747da22/2011-02-03_1525.png

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
Any version (for wrong context menu and wrong java icon), but the 0022 shows a 
upscaled icon, not the javaw.exe one. Windows 7 x86 or x64

Please provide any additional information below.
I have made a temporal workaround: 
http://servicios.ried.cl/arduino/temp/windows7_arduino-0022_fix.rar

Original issue reported on code.google.com by erwinr...@gmail.com on 4 Feb 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Can you explain how you fixed it?  

Original comment by dmel...@gmail.com on 5 Feb 2011 at 12:19

GoogleCodeExporter commented 9 years ago
My fix involves editing java resources, so it might be not-so-legal. I 
nullified:

public static void setIcon(Frame frame)
{
    Image image = Toolkit.getDefaultToolkit().createImage(PApplet.ICON_IMAGE);
    frame.setIconImage(image);
}

this way:

public static void setIcon(Frame frame)
{
    return;
}

... then used the icon from arduino.exe as resource for awt.dll (internal) and 
javaw.exe (external). 

Anyway, can you make PApplet.ICON_IMAGE multiresolution? or bigger (32x32 with 
alpha channel) and use a smaller (16x16) for the windows icon control box?

Original comment by erwinr...@gmail.com on 5 Feb 2011 at 1:33

GoogleCodeExporter commented 9 years ago
Thanks! This worked perfect I've been trying to figure out how to get rid of 
the terrible upscaled icon and this did the trick.  Now if we could only get 
the icon to work like other taskbar icons meaning that when you open new 
arduino instances it just stacks them.

Original comment by nichols....@gmail.com on 11 May 2011 at 9:39

GoogleCodeExporter commented 9 years ago
It would be great to have a fix for this that doesn't require modified the Java 
distribution within the Arduino software.  Anyone have a way to fix this in the 
setIcon() function?

Original comment by dmel...@gmail.com on 22 Oct 2011 at 11:06

GoogleCodeExporter commented 9 years ago
The icon is still "ugly" in 1.01

Original comment by damage3...@gmail.com on 7 Jun 2012 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
Mr. Mellis, there is a clean way to fix the icon:
https://github.com/eried/Arduino/commit/91c7a2d41d1d02ebea8aea7afdc99cbef9c51d6e

Original comment by erwinr...@gmail.com on 26 Oct 2012 at 2:04

GoogleCodeExporter commented 9 years ago
The icon is still "ugly" in 1.6.2

Original comment by suyash.b...@gmail.com on 29 Mar 2015 at 4:30

Attachments: