Skip to content

Commit 758e3aa

Browse files
committedMay 30, 2021
Fix background color of formspec text fields
1 parent a0047d6 commit 758e3aa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/gui/guiFormSpecMenu.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1577,11 +1577,10 @@ void GUIFormSpecMenu::createTextField(parserData *data, FieldSpec &spec,
15771577
}
15781578

15791579
e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
1580-
e->setDrawBorder(style.getBool(StyleSpec::BORDER, true));
15811580
e->setOverrideColor(style.getColor(StyleSpec::TEXTCOLOR, video::SColor(0xFFFFFFFF)));
1582-
if (style.get(StyleSpec::BGCOLOR, "") == "transparent") {
1583-
e->setDrawBackground(false);
1584-
}
1581+
bool border = style.getBool(StyleSpec::BORDER, true);
1582+
e->setDrawBorder(border);
1583+
e->setDrawBackground(border);
15851584
e->setOverrideFont(style.getFont());
15861585

15871586
e->drop();

0 commit comments

Comments
 (0)
Please sign in to comment.