1
0
Fork 0

allow to not only set a general widget <color>, but also specific element

colors:  <color-{{back,fore}ground,highlight,label,legend,misc,editfield}>
<input-misc>, for example, sets the input field cursor color, <input-legend>
the input field text color. (This feature was always planned as part of the
'theming' capabilities, and most code is already in place. Only this line
was apparently fogotten. :-)
This commit is contained in:
mfranz 2006-04-14 10:17:09 +00:00
parent 9512ba5ff7
commit fe78690623

View file

@ -841,6 +841,8 @@ FGDialog::setColor(puObject * object, SGPropertyNode * props, int which)
if ((pucol[i].mask == LABEL) && !c->isValid())
dirty |= c->merge(_gui->getColor("label"));
dirty |= c->merge(props->getNode(pucol[i].cname));
if (c->isValid() && dirty)
object->setColor(pucol[i].id, c->red(), c->green(), c->blue(), c->alpha());
}