[Panel-devel] Background painting bug

Aaron J. Seigo aseigo at kde.org
Thu Sep 6 22:14:35 CEST 2007


On Thursday 06 September 2007, Ivan Čukić wrote:
> As far as I can see from the applet.cpp, it was intentional to make the
> borders to be tile-painted. At the same time the 'center' is
> stretch-painted.
>
> You can see in the attachment the effect it produces on the side borders.
>
> Any comments?

the borders shouldn't be stretched as that introduces artifacts. think about 
variable sized applets for a moment and it'll become apparent why.

one might say this makes doing proper gradients impossible on borders; 
the "solution" would be to detect whether the data for the borders in the 
background image is bitmapped (and therefore should be tiled) or svg xml (and 
therefore should be painted full size, stretched).

as QSvgRenderer doesn't give us access to that information we're a bit stuck 
and had to go for one or the other. for art reasons, bitmap was selected.

in any case, the borders shouldn't contain any pieces of the background. it 
seems the background image you are using does. that should be fixed.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070906/e64e4dc1/attachment.pgp 


More information about the Panel-devel mailing list