[Qgis-user] Define ID for colour

Harrissou s. delazj at gmail.com
Wed Oct 6 05:54:03 PDT 2021


Something like project_color('nameofyourcolor') does not work?


Le 6 octobre 2021 14:01:16 GMT+02:00, Dario C <dario955i at gmail.com> a écrit :
>Thank you for your reply. I have defined project colours as per your
>indications. This is useful when I have a new layer and I want to choose
>from the project colour palette, but I don't see how to use it in an
>expression.
>
>Il giorno mer 6 ott 2021 alle ore 12:45 Harrissou s. <delazj at gmail.com> ha
>scritto:
>
>> Hi Dario,
>>
>> You can create project colors (in project properties, default colors)
>> corresponding to your categories) and link to them (see the tip at
>> https://docs.qgis.org/3.16/en/docs/user_manual/introduction/qgis_configuration.html#id62)
>>
>> Regards,
>> Harrissou
>>
>> Le 6 octobre 2021 12:10:08 GMT+02:00, Dario C <dario955i at gmail.com> a
>> écrit :
>>>
>>> Hi,
>>> Is there any way to assign an ID to a category in order to use the same
>>> color assigned for other objects?
>>>
>>> For instance, I'd like to have in my layout a bar with the same colour of
>>> a categorized object (at the moment I simply do a copy and paste colour,
>>> but, of course if I change the colour of the object my bar is not updated).
>>>
>>> Thank you in advance
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211006/a67cf3a6/attachment.html>


More information about the Qgis-user mailing list