From 480c4bc8f5f9bff50c832d10861b9fabce03464d Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 14 Mar 2020 11:17:10 +0100 Subject: [PATCH] Set proper emoji font for device verification --- resources/qml/device-verification/DeviceVerification.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/qml/device-verification/DeviceVerification.qml b/resources/qml/device-verification/DeviceVerification.qml index d875231..d0f4446 100644 --- a/resources/qml/device-verification/DeviceVerification.qml +++ b/resources/qml/device-verification/DeviceVerification.qml @@ -2,6 +2,7 @@ import QtQuick 2.3 import QtQuick.Controls 2.10 import QtQuick.Window 2.2 import QtQuick.Layouts 1.10 +import Qt.labs.settings 1.0 import im.nheko 1.0 @@ -13,6 +14,12 @@ ApplicationWindow { palette: colors + Settings { + id: settings + category: "user" + property bool emoji_font_family: true + } + height: stack.implicitHeight width: stack.implicitWidth StackView { @@ -271,6 +278,7 @@ ApplicationWindow { Layout.alignment: Qt.AlignHCenter text: col.emoji.emoji font.pixelSize: Qt.application.font.pixelSize * 4 + font.family: settings.emoji_font_family } Text { Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom