okay even though global setColorLabel for some reason doesn't work with toggle or buttons, they can be set individually. this is temp fix, but i don't get why global change doesn't work.
also, the temp fix does not work for radio controllers. perhaps i have to reference the individual radio buttons ("A","B"), but not sure how. any ideas?
Code:
import controlP5.*;
ControlP5 controlP5;
void setup() {
size(400,400);
controlP5 = new ControlP5(this);
controlP5.setColorLabel( color(200,0,0) );
// this is the correct color
Slider s = controlP5.addSlider("s_test", 0,100, 0, 20,20,100,15);
// this is NOT the correct color
Toggle t = controlP5.addToggle("t_Test", false, 20, 60, 15, 15);
// but this is a temp fix (uncomment it to see it work) :
//t.setColorLabel( color(200,0,0) );
// this is NOT the correct color
Radio r = controlP5.addRadio("r_Test", 20,110, 15,15, 20);
r.add("A", 0);
r.add("B", 1);
// and this temp fix does NOT work:
r.setColorLabel( color(200,0,0) );
}
void draw() {
background(0);
}