<div dir="ltr">Kool. But better if one can choose the colour :) <div><br></div><div>Sometimes in the list it turns all white as well. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 27, 2021 at 3:43 PM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27/07/2021 10:33, nilay khatri wrote:<br>
> How can we define the colour for text in picklist? Does it picks up the <br>
> colour automatically based on contrast?<br>
> <br>
> In colour picker we get 2 boxes, why is that?<br>
> <br>
> How is this happening, that pre-release is in white and rest all are in <br>
> black?<br>
<br>
I would guess you need to look at this code for a starting point:<br>
<br>
<a href="https://code.vtiger.com/vtiger/vtigercrm/blob/master/layouts/v7/modules/Settings/Picklist/resources/Picklist.js#L567" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/blob/master/layouts/v7/modules/Settings/Picklist/resources/Picklist.js#L567</a><br>
<br>
And in particular this method:<br>
<br>
app.helper.getColorContrast(color);<br>
<br>
HTH<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div>