Set widget transparency with percentage

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
Christofer
Posts: 31
Joined: 27 May 2017 11:19

Set widget transparency with percentage

Post by Christofer » 26 Apr 2018 21:44

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.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Set widget transparency with percentage

Post by Desmanto » 27 Apr 2018 17:21

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%.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Christofer
Posts: 31
Joined: 27 May 2017 11:19

Re: Set widget transparency with percentage

Post by Christofer » 27 Apr 2018 18:11

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!

Locked