# Change OnlineUnlockForm background colour?

**URL:** <https://forum.juce.com/t/change-onlineunlockform-background-colour/43725>\
**Category:** General JUCE discussion\
**Created:** [January 9, 2021, 9:33pm UTC](https://forum.juce.com/t/change-onlineunlockform-background-colour/43725 "2021-01-09T21:33:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RossWallgren](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@RossWallgren](https://forum.juce.com/u/RossWallgren)\
**Post date:** [January 9, 2021, 9:33pm UTC](https://forum.juce.com/t/change-onlineunlockform-background-colour/43725/1 "2021-01-09T21:33:38Z")

</div>

Hi all,

Working on the authentication part of a plugin. I am following along with the relevant tutorial and created a Component class inheriting from the OnlineUnlockForm, which I am happy with. However, there is low contrast between the background colour and text colour, and I want to change the background colour (this will blend in better with the plugin itself). There doesn’t seem to be a juce::OnlineUnlockForm::backgroundColourId as there is for other component classes, so I have no idea what to put in for the colourId argument of Component::setColour. How can I go about changing the background colour?

Thanks,

---

<div class="post-metadata">

**Author:** ![RossWallgren](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@RossWallgren](https://forum.juce.com/u/RossWallgren)\
**Post date:** [January 13, 2021, 1:10am UTC](https://forum.juce.com/t/change-onlineunlockform-background-colour/43725/2 "2021-01-13T01:10:31Z")

</div>

SOLUTION: override the paint() function in the Component class and write g.fillAll(). I would have thought this would result in a solid color rectangle, but the text field and buttons were still drawn an top of it.
