Panel background - mask problem [PATCH]

Marco Martin notmart at gmail.com
Fri Dec 12 11:34:32 CET 2008


On Thursday 11 December 2008, Ivan Čukić wrote:
> FrameSvg is not a pleasant thing for modifications, at least not this type
> of modification.
>
> Here is a patch that works, but is a bit dirty since I wanted to change as
> little as I can (and i'm not satisfied with that) - it sets a new prefix
> and renders the mask-prefix elements, and then assigns the mask of that
> render to the original FrameData.
>
> I had to add the new maskFrame to d->frames so that updateSizes() can work.
>
> What to do about that - should I remove it immediately after rendering or
> what?
>
> Cheerio!
it good, yeah, maybe i don't like really much changing d->prefix generating 
the thing and then again but making generatebackground aware of the mask it's 
a bit complicated, so i think it's ok.
about deleting the frame after generating i suppose yes, since the bitmap is 
already cached..
i think i will need this mask also for a new theme element, i think it would 
make sense to make it a private function like alphaChannel() or something like 
this

Cheers,
Marco Martin


More information about the Plasma-devel mailing list