LIVE_CONSTANT - how do I ensure changed constants get saved in cpp file?


#1

i've got LIVE_CONSTANTS running on my LookandFeel class constants but after changing colours the cpp file has the old values.

 

What can i do to ensure my source file gets updated and saved with latest changes ? 

void RBLookAndFeel::updateConstants() {

    

    

    WindowBackGroundColor = RB_Color(JUCE_LIVE_CONSTANT(Colour(0xff708090))); //WindowBackGroundColor

    

    const Colour textButtonColour (JUCE_LIVE_CONSTANT(Colour(0xffeeeeff))); //textButtonColour

    

     controlBackGroundColor = RB_Color(JUCE_LIVE_CONSTANT(Colour(0xff708090))); //controlBackGroundColor

    controlBackGroundAlpha = 1.0;

    

 

    highlightColor =  RB_Color(JUCE_LIVE_CONSTANT(Colour(0xffeeeeff))); //highlightColo

    const Colour listboxAltColour (0xFFECF2FE)

    listboxAlternateColor = RB_Color(JUCE_LIVE_CONSTANT(Colour(0xff708090))); //listboxAlternateColor

    TextColor = RB_Color(JUCE_LIVE_CONSTANT(Colour(0xffffffff))); //TextColor

    controlOutlineColor = (Colours::black).withAlpha(0.2f);   //controlOutlineColor

    listBoxBorderThickness = 0;

 

    setColour(EditableTextListBoxComponent::textColourId, TextColor);

    setColour(EditableTextListBoxComponent::backgroundColourId, Colours::whitesmoke );

    setColour(EditableTextListBoxComponent::outlineColourId, Colours::purple)

    setColour(ResizableWindow::backgroundColourId, JUCE_LIVE_CONSTANT(Colour(0xff708090)) ); //ResizableWindow::backgroundColourId