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:
parent
9512ba5ff7
commit
fe78690623
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue