# Bug - projucer uses TextEditor colour IDs with Label

**URL:** <https://forum.juce.com/t/bug-projucer-uses-texteditor-colour-ids-with-label/41233>\
**Category:** The Projucer\
**Created:** [August 15, 2020, 1:18am UTC](https://forum.juce.com/t/bug-projucer-uses-texteditor-colour-ids-with-label/41233 "2020-08-15T01:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongoodeve](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dongoodeve/32/10151_2.png) [@dongoodeve](https://forum.juce.com/u/dongoodeve)\
**Post date:** [August 15, 2020, 1:18am UTC](https://forum.juce.com/t/bug-projucer-uses-texteditor-colour-ids-with-label/41233/1 "2020-08-15T01:18:15Z")

</div>

JUCE 6.0.1 - but has been there for a while I think.

When I am creating a dialog with projucer and include a Label component - in the generated code the colours for the elements (ie. TextColour) is being set with the ID for TextEditor rather than for Label - and hence the colours are not being set.

ie. TextEditor::textColourId == 0x1000201  
Label::textColourId == 0x1000281

For example: (from projucer created constructor):

```
    mpDescription.reset (new juce::Label ("mpDescription",
                                      TRANS("My text")));
addAndMakeVisible (mpDescription.get());
mpDescription->setFont (juce::Font (15.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
mpDescription->setJustificationType (juce::Justification::topLeft);
mpDescription->setEditable (false, false, false);
mpDescription->setColour (juce::TextEditor::textColourId, juce::Colours::black);
mpDescription->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
```
