Assign a random color to a new label

By default, every newly created label is grey. It would be cool if every new label could get a random color (perhaps from a pre-defined palette) instead.

Would save me a lot of time and headache thinking of “appropriate” colors for different labels, and colors balance in a label set.

Do you think it would work to give it one of the predefined colors from the color picker?

Yeah, sounds like a good option.

Is it possible to assign random colours? Maybe create random numbers between 1 and 16, round it down to the previous integer and convert it to hexadecimal?

From a technical point of view yes, you could do that. But you usually don’t get great colours when you’re just randomly generating numbers. A better way of doing this is to have a list with colours somewhere and then pick one of them at random.

1 Like