1
0
Fork 0

distinguish editable and non editable textboxes; the former will usually

be colored like input fields, while the others will be colored like normal
text
This commit is contained in:
mfranz 2005-11-09 18:23:55 +00:00
parent feb555b087
commit 5299ab0304

View file

@ -759,6 +759,8 @@ FGDialog::setColor(puObject * object, SGPropertyNode * props, int which)
string type = props->getName();
if (type == "")
type = "dialog";
if (type == "textbox" && props->getBoolValue("editable"))
type += "-editable";
FGColor *c = new FGColor(_gui->getColor("background"));
c->merge(_gui->getColor(type));