[Kstars-devel] [PATCH] transparency for infoboxes and labels

Médéric Boquien mboquien at free.fr
Sun Aug 17 01:03:15 CEST 2008


Hello,

I have made a small patch improving the transparency effect:
* for infoboxes, i have replaced the box background pattern by a solid colour 
and an alpha value of 127. The value is somewhat arbitrary but it looks fine 
with all colour schemes i have tried. Look at the 2 attached png images to see 
the difference.
* for labels, i have also replaced the pattern with a solid colour. To perform 
the fading effect, rather than manually calculating a new colour as done 
before, i keep the same RGB values for the label background but i increase the 
transparency to make the label more and more transparent.
So far, i have not seen any problem/

Thanks, regards,

Médéric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: old_infobox.png
Type: image/png
Size: 4189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080816/7cc64115/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new_infobox.png
Type: image/png
Size: 4786 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080816/7cc64115/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: infoboxes_labels.patch
Type: text/x-patch
Size: 3241 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080816/7cc64115/attachment.bin 


More information about the Kstars-devel mailing list