≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #453

Bug #453: Transparent parts of images appear as white (ShapeShifter)

Kind bug
Product WinSwitch
When Created 2006-08-28T14:08:04Z, updated 2010-08-12T10:09:41Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

From a user email:

"Is it possible to have the display of the user picture in the menubar use an available alpha channel in the image? I use ShapeShifter and my menu is not the normal off-white, and the transparent areas are drawn white, looking terrible on the themed menubar. I realize OS X does the same (no transparency) for user pictures, but..."

"Come to thing of it, even a standard unthemed OSX menu has enough of an off-white/grey color that the white background in the user pic might be noticable."

Comments

  1. Greg Hurrell 2006-08-28T14:08:56Z

    Created an attachment (id=73) screenshot

    User-submitted screenshot.

  2. Greg Hurrell 2006-08-28T14:10:56Z

    Not sure what the workaround for this one might be as it seems to be the OS itself which is responsible for that. I don't have the code in front of me right now, but from memory all we're doing is passing an NSImage to the system and the system is handling the drawing of it.

    The source code is available for download if anyone wants to take a look at this issue; I won't be able to investigate it myself for a while because of some other higher-priority stuff that I've got to attend to.

  3. Greg Hurrell 2006-08-29T11:13:44Z

    More user comments:

    "I just tried it on another Mac without ShapeShifter. Same non-transparent white background, though it's not as noticable. Except when I popup the WinSwitch menu - the hilite also has a squared-off box around the image instead of blending with the transparency. So it's not a ShapeShifter problem, it's just more noticable.

    And, the transparency is also missing in the menu items, not just the menubar icon.

    Note also that I've tried TIFF and PNG user pics, both with transparency

    NSImage should be able to handle transparency. And other menu extras can draw transparent icons, including WinSwitch's own userIcon.tiff. I wonder if it has to do with scaling the image, since user pictures are larger than the standard menu icon size, yet the userIcon.tiff isn't scaled to fit the menubar and does show the transparency."

    "Oh, another thought I had why it might not be drawing transparency - basically all use of user pics in the system I've seen doesn't display transparency, so maybe it's the *reading* of the user pic that is dropping the transparency. ie if you are using user info functions to retrieve the user pic image data and those functions don't support transparency, instead of getting the image file location and reading from the file with generic image functions."

  4. jim 2006-08-30T09:25:33Z

    This issue is pretty benign, so it's hard to justify the time/energy to fix it, but this is just one of three things I can think of that would enhance my use of WinSwitch. Consider me in favor of this fix, if you can figure it out.

  5. Greg Hurrell 2010-08-12T10:09:06Z

    I'm marking all WinSwitch issues closed seeing as I personally no longer use it, and in fact haven't for around 4 years now.

    WinSwitch addressed a real problem with the initial implementation of Fast User Switching in Panther (released October 2003), namely, the excessive screen real estate that it chewed up. Apple fixed that problem in Tiger, if I recall correctly, which came out in April 2005 (or if I'm wrong about it being Tiger, then it was definitely fixed by the time Leopard came out, in October 2007).

    With this change, most of the justification for WinSwitch's existence went away, at least for me. So that's why I'm going to close all these tickets: I can't really support something that I don't use myself.

    But it's open source, so if any one wants to tackle any of these issues and submit patches, I'll be happy to accept them.

  6. Greg Hurrell 2010-08-12T10:09:41Z

    Status changed:

    • From: open
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets