From fe7869062366663e7710ef1621fc24d9d6d8179d Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 14 Apr 2006 10:17:09 +0000 Subject: [PATCH] allow to not only set a general widget , but also specific element colors: , for example, sets the input field cursor color, 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. :-) --- src/GUI/dialog.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 30c300403..b248fc936 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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()); } -- 2.39.5