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 14:29
l1m5  is currently offline l1m5
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 152 times)
  • Attachment: 2.png
    (Size: 9.09KB, Downloaded 134 times)
Previous Topic:No public Maven repository for SWT platform binaries - why?
Next Topic:Scroll bar not behaving as expected in a tabbed properties view.
Goto Forum:
  


Current Time: Fri Jul 25 05:13:50 EDT 2014

Powered by FUDForum. Page generated in 0.01622 seconds