mirror of https://github.com/axmolengine/axmol.git
Should use setTextColor for editbox placeholder. (#18311)
This commit is contained in:
parent
bd59575468
commit
b633260020
|
@ -96,7 +96,7 @@ void EditBoxImplCommon::initInactiveLabels(const Size& size)
|
|||
|
||||
_labelPlaceHolder = Label::create();
|
||||
_labelPlaceHolder->setAnchorPoint(Vec2(0, 1.0f));
|
||||
_labelPlaceHolder->setColor(Color3B::GRAY);
|
||||
_labelPlaceHolder->setTextColor(Color4B::GRAY);
|
||||
_labelPlaceHolder->enableWrap(false);
|
||||
_editBox->addChild(_labelPlaceHolder, kLabelZOrder);
|
||||
|
||||
|
|
Loading…
Reference in New Issue