HumanSignal / label-studio-frontend

Data labeling react app that is backend agnostic and can be embedded into your applications — distributed as an NPM package
https://labelstud.io/
Apache License 2.0
419 stars 316 forks source link

Change color of brush #1700

Open SlavenSoldo opened 7 months ago

SlavenSoldo commented 7 months ago

Hi, I'm trying to change the color of the brush annotation. image Here I add annotation(mask) in the task in annotation. image And I got the correct thing displaying when Label Studio is loaded. image But I want to change the color of that brush. I changed it when we added a new one and it is green, but I can't find a solution how to change the color of the mask that is loaded from DB.

Does anyone know how to solve this situation?

makseq commented 7 months ago

Hi, why don't you want to use something like this:

  <BrushLabels name="tag" toName="image">
    <Label value="Planet" background="rgba(0, 0, 255, 0.7)"/>
    <Label value="Moonwalker" background="rgba(255, 0, 0, 0.7)"/>
  </BrushLabels>

?