Jump to content


Photo

Picons background always transparent.


  • Please log in to reply
2 replies to this topic

#1 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 12 June 2019 - 18:46

Hello everyone! 

 

Can you help me to achieve black background under my picons? 

My picons as most of them are transparent .png files, my background colour is 80% black  (#33000000) I would like to have picons appearing on my background without penetrating it.  

So I have tried to put an pixmap and label items under neath the picons but no luck, they are always penetrating cutting through the background and this is looks not really nice. 

 

This is my widget loading my picons:

<widget source="ServiceEvent" render="Picon" position="703,10" size="100,60" zPosition="10" transparent="1" alphatest="on">
  <!--  <convert type="ServiceName">Name</convert>
-->
  <convert type="XRefString">ServicelistRef</convert>
</widget>

I have tried to add backgroundColor="#33000000" but no luck. 

Is there any chance to achieve this? 

Please see the attached picture. 

 

Thanks so much guys!

 

 

 

Attached Files



Re: Picons background always transparent. #2 Loui (PD1LOI)

  • Senior Member
  • 4,529 posts

+140
Excellent

Posted 12 June 2019 - 19:22

Hello everyone! 

 

Can you help me to achieve black background under my picons? 

My picons as most of them are transparent .png files, my background colour is 80% black  (#33000000) I would like to have picons appearing on my background without penetrating it.  

So I have tried to put an pixmap and label items under neath the picons but no luck, they are always penetrating cutting through the background and this is looks not really nice. 

 

This is my widget loading my picons:

<widget source="ServiceEvent" render="Picon" position="703,10" size="100,60" zPosition="10" transparent="1" alphatest="on">
  <!--  <convert type="ServiceName">Name</convert>
-->
  <convert type="XRefString">ServicelistRef</convert>
</widget>

I have tried to add backgroundColor="#33000000" but no luck. 

Is there any chance to achieve this? 

Please see the attached picture. 

 

Thanks so much guys!

Ant this??

 

<widget source="session.CurrentService" render="Picon" position="703,10" size="100,60" alphatest="blend" backgroundColor="secondBG" transparent="1" zPosition="1">
  <convert type="ServiceName">Reference</convert>
</widget>


Re: Picons background always transparent. #3 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 12 June 2019 - 21:20

@Loui thanks again but this is not working for me. 

My code is now like this according to your advice: 

<widget source="ServiceEvent" render="Picon" position="703,10" size="100,60" alphatest="blend" backgroundColor="transpBlack" transparent="1" zPosition="1">
  <convert type="XRefString">ServicelistRef</convert>
</widget>



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users