From 24834ced9ee2de725b8bd3e792e9a1c05f9f2834 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 25 May 2018 20:48:51 +0300 Subject: [PATCH] Fix input field palette setup. Fixes #4732. Fixes #4734. --- Telegram/SourceFiles/ui/widgets/input_fields.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/widgets/input_fields.cpp b/Telegram/SourceFiles/ui/widgets/input_fields.cpp index 40c51aabcc..44714acdb8 100644 --- a/Telegram/SourceFiles/ui/widgets/input_fields.cpp +++ b/Telegram/SourceFiles/ui/widgets/input_fields.cpp @@ -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() {