Fix input field palette setup.

Fixes #4732. Fixes #4734.
This commit is contained in:
John Preston 2018-05-25 20:48:51 +03:00
parent 10fa6f0c13
commit 24834ced9e

View File

@ -1159,9 +1159,9 @@ QVariant InputField::loadResource(int type, const QUrl &name) {
}
void InputField::updatePalette() {
auto p = palette();
auto p = _inner->palette();
p.setColor(QPalette::Text, _st.textFg->c);
setPalette(p);
_inner->setPalette(p);
}
void InputField::onTouchTimer() {