Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

ofxUIButton, cannot customize colors #236

Open
dimitre opened this issue Mar 30, 2015 · 0 comments
Open

ofxUIButton, cannot customize colors #236

dimitre opened this issue Mar 30, 2015 · 0 comments

Comments

@dimitre
Copy link

dimitre commented Mar 30, 2015

I can't customize ofxUIButton colors.
Similar code works on ofxUIToggle and the rest of the widgets.

else if (tipo == "button") {
    parametrosBool[nome] = def;
    guiMap[guiName]->addButton(nome, &parametrosBool[nome], 16, 16);
    ofxUIButton *s = (ofxUIButton *) guiMap[guiName]->getWidget(nome);
    s->setColorBack(parametrosColor["back"]);
    s->setColorFill(parametrosColor["fill"]);
    s->setColorFillHighlight(parametrosColor["fillhighlight"]);
    s->setColorOutlineHighlight(parametrosColor["outlinehighlight"]);
}

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant