Skip to main content
Topic: Different colours for artists (Read 313 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Different colours for artists

Hi everyone,
Always managed to find answers and solutions without bothering the community too much. This time after a lot of searching I couldn’t find any help.
What I.m trying to figure out is how to assign a different color to certain artists in my filter panel, vs the “standard one” provided in my color scheme.

Is this something feasible?
Maybe it could be done assigning a different color to preferred artists... but Ik’m lost as how to do it

Thanks a lot,
RJ

Re: Different colours for artists

Reply #1
Anyone?

 :)) 

Re: Different colours for artists

Reply #2
Well, assuming you are talking about Columns UI filters, it's pretty straightforward: use the conditional statement $if() combined with the $rgb() function.
For example, if you want to set the font colour to red for all artists whose name begins with an "A", you can write in the field description something like:
Code: [Select]
$ifequal($strcmp($left(%artist%,1),A),1,$rgb(255,0,0),)%artist%
I'm late

 
SimplePortal 1.0.0 RC1 © 2008-2019