[Mono-winforms-list] Transparency in NotifyIcon on Linux

Erik Renes keenriser at planet.nl
Thu Dec 20 07:09:45 EST 2007


Hi Everaldo, 

The sample in the Mono winforms svn project has the same problem with
transparency. I have included it (compiled and sources) as an attachment,
compiled using gmcs on Mono 1.2.5.1. 

I think it might be important to know that I have tested it only on Gnome
desktops, unfortunately I have no access to KDE desktops to test if it works
there. 

swf-notifyicon.exe is an application that creates a notifyicon in the tray
with a little bit of transparency and draws the same icon on a form.
swf-balloon.exe is an application that creates a form with a clickable
'show/hide icon' and 'show balloon'. This uses the default mono icon, which
in turn uses a lot of transparency so it may be the easiest to actually see
the problem. 

Best Regards,
Erik Renes

-----Original Message-----
From: Everaldo Canuto [mailto:everaldo.canuto at gmail.com] 
Sent: donderdag 20 december 2007 11:21
To: Erik Renes
Cc: mono-winforms-list at lists.ximian.com
Subject: Re: [Mono-winforms-list] Transparency in NotifyIcon on Linux

Hey,

Could you provide a sample (and simple) case just to check it here?

-Everaldo.

On Dec 19, 2007 2:39 PM, Erik Renes <keenriser at planet.nl> wrote:
>
>
>
>
> Hi Everyone,
>
>
>
> I am currently developing an application that lives in the tray. For the
> NotifyIcon, I have used a windows .ico file that has some transparency in
> it.
>
>
>
> If I run my code on windows, using .net 2.0 or mono everything is fine. On
> linux however, every pixel that should be transparent is colored white.
>
>
>
> I have tried to create an ico file with the least colors possible (16) and
> only one 16x16 image, I have used PNG and GIF images as Icons (using
HIcon)
> to try and get it to work, but the same issues arise in every scenario I
> have tried.
>
>
>
> I have tried on a virtual machine running Suse Linux Enterprise Desktop,
> using winforms 1.2.6 and on a 'normal' machine running Ubuntu 7.10 with
Mono
> 1.2.4 (official Ubuntu packages) and 1.2.5.1 (preview packages from
> debian.meebey.net). I have full control over application code and the icon
> used, is this a known issue? Is there anything I haven't thought of that
may
> get it to work?
>
>
>
> Best regards,
>  Erik Renes
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notifyicon.zip
Type: application/octet-stream
Size: 14788 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20071220/60810391/attachment-0001.obj 


More information about the Mono-winforms-list mailing list