From c14cbdf4fd99352d1a70ad0c9dfeb78e309b1228 Mon Sep 17 00:00:00 2001 From: Zetok Zalbavar Date: Sat, 17 Dec 2016 10:51:43 +0000 Subject: [PATCH] feat(UI): make font in message input field use font settings Right now it requires qTox restart to take effect in all chats. Should help with 4k high-dpi displays. --- src/widget/form/genericchatform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 014d4d79b..6138bc244 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -83,6 +83,8 @@ GenericChatForm::GenericChatForm(QWidget *parent) chatWidget, &ChatLog::forceRelayout); msgEdit = new ChatTextEdit(); + // TODO: make it work without restart + msgEdit->setCurrentFont(s.getChatMessageFont()); sendButton = new QPushButton(); emoteButton = new QPushButton();