CancelDeath / chibe

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

Icons in pop-ups/dialogs #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In some windows, no icon is displayed on the title bar, while in others can't 
find the appropriate icon and displays a red square instead. We should properly 
display the ChiBE icon in all.

Ozgun, it'd be great if you can figure out the problem and pass it to Merve to 
fix if you like.

Original issue reported on code.google.com by ugurdogr...@gmail.com on 30 Apr 2012 at 12:32

GoogleCodeExporter commented 8 years ago
I fixed the wrong path names of icons. But some dialogs still lack a ChiBE 
icon. Merve can you please add ChiBE icons to those dialogs? You just need to 
add a line similar to the below:

shell.setImage(ImageDescriptor.createFromFile(getClass(), 
"../icon/cbe-icon.png").createImage()); 

You may need to change the path to the icon directory according to the package 
you are in.

Original comment by ozgunba...@gmail.com on 11 May 2012 at 3:55

GoogleCodeExporter commented 8 years ago
My previous suggestion doesn't work when running ChiBE from single jar. So 
please use the following line instead:

shell.setImage(ImageDescriptor.createFromFile(ChisioMain.class, 
"icon/cbe-icon.png").createImage()); 

Original comment by ozgunba...@gmail.com on 11 May 2012 at 4:27

GoogleCodeExporter commented 8 years ago
ChiBE icons have been added to the dialogs by following your suggestion. 

Original comment by mervecak...@gmail.com on 17 May 2012 at 9:14