Apply a Gradient to Text
#1
Is there any way to apply a gradient to a label?
If I remember correctly Aeon's homescreen makes use of this effect.
But I couldn't find any related code in the files.
Or do I have to use images instead?
Image
Reply
#2
I believe the only way is to use stringcompare and make images that say "Movies, Home, etc". But, the issue then, is what about custom home items?
Image
To learn more, click here.
Reply
#3
toolpunk Wrote:Is there any way to apply a gradient to a label?
If I remember correctly Aeon's homescreen makes use of this effect.
But I couldn't find any related code in the files.
Or do I have to use images instead?

Aeon used a texture (homemenu_gradient.png).
Reply
#4
Only other way I can think of is to put a semi transparent gradient texture in front of the text, but the color behind the text would need to be quite dark for it not to look bad.

There's no way to do it all through code in any case.
Reply
#5
Hitcher Wrote:Aeon used a texture (homemenu_gradient.png).

Thanks, I found the related code now.
Unfortunately this method won't work in my case.

I'll try to think of a workaround.
In the worst case I will have to create separate images for every menu item.

Seriously, thanks for all the help guys.
You're awesome. Smile
Image
Reply
#6
toolpunk Wrote:In the worst case I will have to create separate images for every menu item.

if you decide to go that way, remember you would have to create a set of images for every language xbmc supports, that is, if you want to do it properly.

i think Rapier had that feature.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Apply a Gradient to Text0