登录:     


Forum: VirtualDJ Skins

Topic: On the use of colour defines
Hi all!
There is a button I'd like to change colors with a condition. This below works fine.

color="`var '@$smcolor' ? color '#c6c6c6' : color '#727272'`"


I can also replace the numbers with predefined colors like "red" or "white" but I don't find how to reuse the "textdarker" define done early in the skin. The define seems fine when used by itself, but I can't figure out how to use it in a script.

<define color="textdarker" value="#727272"/>


I assume it's pretty simple but... Thanks in advance!
 

发表时间 2 days ago @ 3:03 pm
Defined colors can't be used in scripts.

You can use them in skins in EVERY place color="MyCoolColor" is supported, but not like color="`play ? color 'green' : color 'MyCoolColor'`"