Skip to content
Permalink
Browse files
Fix background color of formspec text fields
  • Loading branch information
sfan5 committed May 30, 2021
1 parent a0047d6 commit 758e3aa1ca541c99e8c7824a2465b3bda7394d20
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/gui/guiFormSpecMenu.cpp
@@ -1577,11 +1577,10 @@ void GUIFormSpecMenu::createTextField(parserData *data, FieldSpec &spec,
}

e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
e->setDrawBorder(style.getBool(StyleSpec::BORDER, true));
e->setOverrideColor(style.getColor(StyleSpec::TEXTCOLOR, video::SColor(0xFFFFFFFF)));
if (style.get(StyleSpec::BGCOLOR, "") == "transparent") {
e->setDrawBackground(false);
}
bool border = style.getBool(StyleSpec::BORDER, true);
e->setDrawBorder(border);
e->setDrawBackground(border);
e->setOverrideFont(style.getFont());

e->drop();

0 comments on commit 758e3aa

Please sign in to comment.