Re: [Qgis-user] Define ID for colour

2021-10-06 Thread Dario C
yes, it works! thanks a lot Il giorno mer 6 ott 2021 alle ore 14:54 Harrissou s. ha scritto: > Something like project_color('nameofyourcolor') does not work? > > > Le 6 octobre 2021 14:01:16 GMT+02:00, Dario C a > écrit : >> >> Thank you for your reply. I have defined project colours as per

Re: [Qgis-user] Define ID for colour

2021-10-06 Thread Harrissou s.
Something like project_color('nameofyourcolor') does not work? Le 6 octobre 2021 14:01:16 GMT+02:00, Dario C 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

Re: [Qgis-user] Define ID for colour

2021-10-06 Thread Dario C
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. ha scritto: > Hi

Re: [Qgis-user] Define ID for colour

2021-10-06 Thread Raymond Nijssen
Hi Dario, Recently I have been searching for something similar. A customer made a classification with (many) nice human readable labels and wanted to add those in a column in the attribute table. I could not find a feature.getClass() or feature.getSymbology() or something. I think this only

Re: [Qgis-user] Define ID for colour

2021-10-06 Thread Harrissou s.
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,

[Qgis-user] Define ID for colour

2021-10-06 Thread Dario C
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