Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT TrayItem Image not scaling properly on Mac OSX(TrayItem Image provides too much "padding" to the left and right of the icon)
SWT TrayItem Image not scaling properly on Mac OSX [message #689496] Mon, 27 June 2011 18:29
l1m5  is currently offline l1m5 Friend
Messages: 1
Registered: June 2011
Junior Member
On my cross-platform SWT Java application, I'm using TrayItem's setImages() function to set the dock and status bar icon. The icon is a 128x128 transparent PNG. The status and tray icons are appropriately clipped on both Windows and Linux distributions, but on the Mac I have problems that make the status bar icon appear with strange padding on both sides like attachment 1.

It's strange to me that this is working on all other platforms but the Mac. For instance, here is the same status bar icon without the problem on my Linux box (see image 2).

Does anyone have any idea how to prevent this extra padding on the Mac?
  • Attachment: 1.png
    (Size: 76.12KB, Downloaded 228 times)
  • Attachment: 2.png
    (Size: 9.09KB, Downloaded 207 times)
Previous Topic:specifying custom XULRunner installation doesn't work
Next Topic:Popup menu on DateTime
Goto Forum:

Current Time: Fri Oct 20 12:50:52 GMT 2017

Powered by FUDForum. Page generated in 0.02655 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software