[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Determine bg color for systray applet / double buffering
From:       "Branan Riley" <branan () gmail ! com>
Date:       2006-10-25 15:14:51
Message-ID: cad96db0610250814pd66106exbc0cf0b78641ed85 () mail ! gmail ! com
[Download RAW message or body]

I'm pretty new at KDE/Qt, so I could be wrong about this, but I'd
expect that, as long as your app has access to the Qt library, it
should be able to draw the image with alpha regardless of whether it's
in KDE or gnome.

On 10/25/06, Michael Biebl <mbiebl@gmail.com> wrote:
> 2006/10/25, koos vriezen <koos.vriezen@gmail.com>:
> > 2006/10/25, Michael Biebl <mbiebl@gmail.com>:
> > > Hi all,
> > >
> > > as the Debian maintainer of the knetworkmanager package, I'm looking
> > > for a solution for [1].
> > > To avoid a flickering systray applet,  Valentine Sinitsyn posted a
> > > patch [3] based on [2], which implements double buffering.
> > > It basically acquires the bg image with QPixmap::grabWindow(
> > > this->winId()), draws on that, and then does a bitBlt.
> > >
> > > Unfortunately the approach has its drawbacks. If the systray applet is
> > > hidden/obscured the wrong bg color is chosen, resulting in ugly
> > > drawing artifacts (see the screenshots in [1]).
> > > Is there a reliable way to determine the bg color of a systray applet
> > > or a in general a cleaner solution to implement double buffering for a
> > > systray applet.
> >
> > Don't know about the bg color.
> > I would use a QPixmap as paintdevice for dbl buffer and try w/ alpha
> > to avoid having to know what bg color to use.
>
> Will this also work if I use a different system tray than KSystemTray,
> e.g. Gnome's notification area?
>
> Cheers,
> Michael
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic