[Vtigercrm-developers] Picklist colour for text
Alan Lord
alanslists at gmail.com
Tue Jul 27 10:11:21 GMT 2021
On 27/07/2021 10:33, nilay khatri wrote:
> How can we define the colour for text in picklist? Does it picks up the
> colour automatically based on contrast?
>
> In colour picker we get 2 boxes, why is that?
>
> How is this happening, that pre-release is in white and rest all are in
> black?
I would guess you need to look at this code for a starting point:
https://code.vtiger.com/vtiger/vtigercrm/blob/master/layouts/v7/modules/Settings/Picklist/resources/Picklist.js#L567
And in particular this method:
app.helper.getColorContrast(color);
HTH
Al
More information about the vtigercrm-developers
mailing list