TextButton text font colours are inverted in projucer?


#1

It seems that when making a text button in the projucer, the text colour (normal) and text colour (on) are actually mapped the wrong way around! So, in the projucer GUI, if you set the text colour (on) to black, then in generated code, it is actually assigning black to the textColourOffId !!


#2

Could easily be a typo in there - have you looked into the projucer GUI editor code that’s being called?


#3

yep, looks like a typo

class TextButtonHandler  : public ButtonHandler
{
public:
    TextButtonHandler()
        : ButtonHandler ("Text Button", "TextButton", typeid (TextButton), 150, 24)
    {
        registerColour (TextButton::buttonColourId, "background (normal)", "bgColOff");
        registerColour (TextButton::buttonOnColourId, "background (on)", "bgColOn");
        registerColour (TextButton::textColourOnId, "text colour (normal)", "textCol");
        registerColour (TextButton::textColourOffId, "text colour (on)", "textColOn");
    }