Page 1 of 1

Set widget transparency with percentage

Posted: 26 Apr 2018 21:44
by Christofer
When making widgets, it would be nice to be able to also set the transparency with a percentage. Currently you drag a slider to set it. The perfectionist inside me is having a hard time when I have to eye the slider position to make elements (and widget backgrounds) have the same level of transparency.

Re: Set widget transparency with percentage

Posted: 27 Apr 2018 17:21
by Desmanto
We have no percentage, since you can modify it directly at the alpha channel (opaqueness). Automagic use ARGB format : Alpha Red Green Blue. So the #ff00ff00 represent solid green color. By modifying the first byte to 80 >> #8000ff00, you are showing the green in 50% transparency. Just change the first byte to something you want, it is in hexdecimal base, so the range is from 0 (fully transparent) to 255 (fully opaque) or in hexdecimal is from 00 to ff. 0x80 = 128 in decimal; thus 50%.

Re: Set widget transparency with percentage

Posted: 27 Apr 2018 18:11
by Christofer
Thanks for being all over the forum keeping an eye on questions like these, it's really appreciated! :D This will fix my transparency headache!