Tray icon L&F
Leonid Romanov
leonid.romanov at oracle.com
Thu Dec 1 12:18:28 PST 2011
Ah, well, no attachments are allowed. So, here are direct links.
TrayIcon highlighted:
http://dl.dropbox.com/u/19863443/trayicon_hl.png
NSStatusItem highlighted:
http://dl.dropbox.com/u/19863443/nsstatusitem_hl.png
On 02.12.2011, at 0:01, Leonid Romanov wrote:
> Hi,
> I didn't get your question, sorry. Perhaps a couple of screenshots will help to clarify my question (see attachments). First screenshot shows AWT TrayIcon's image in highlighted state. Notice that the bulb image is grayed out (dimmed). For the second screenshot I've written a small Cocoa app that puts an image into the status bar via -setImage: method of NSStatusItem class. As you can see, the way it's highlighted is different from the first screenshot: there is no graying out.
> So, my question was the following: this grayed out TrayIcon highlighting, is it a result of conscious decision, like an UI designer coming to an engineer responsible for TrayIcon implementation and telling him "This is the way TrayIcon should look like in highlighted sate", or is it just happened?
> Personally, I think that AWT TrayIcon should be highlighted the same way as Cocoa does it, without dimming the image, so I've prepared a patch that does it (see attached webrev).
>
> Leonid.
>
>
>
>
> On 01.12.2011, at 1:04, Mike Swingler wrote:
>
>> On Nov 30, 2011, at 12:43 PM, Leonid Romanov wrote:
>>
>>> Hi,
>>> In JDK 7 (as well in JDK6) clicking status bar image corresponding to TrayIcon gives it grayed out appearance. The thing is, none of the other icons I have sitting in my menu bar highlight in that way. So, I wonder, is there any particular UX reason for such nonstandard L&F or it's just an implementation artifact? I have a patch ready that fixes it, so if there are no objection, I'll go ahead and commit it.
>>
>> Are you setting the NSImage to be a "template" image?
>>
>> Curious,
>> Mike Swingler
>> Apple Inc.
>>
>
More information about the macosx-port-dev
mailing list