Set proper emoji font for device verification

This commit is contained in:
Nicolas Werner 2020-03-14 11:17:10 +01:00 committed by CH Chethan Reddy
parent 2088053d26
commit 480c4bc8f5

View file

@ -2,6 +2,7 @@ import QtQuick 2.3
import QtQuick.Controls 2.10 import QtQuick.Controls 2.10
import QtQuick.Window 2.2 import QtQuick.Window 2.2
import QtQuick.Layouts 1.10 import QtQuick.Layouts 1.10
import Qt.labs.settings 1.0
import im.nheko 1.0 import im.nheko 1.0
@ -13,6 +14,12 @@ ApplicationWindow {
palette: colors palette: colors
Settings {
id: settings
category: "user"
property bool emoji_font_family: true
}
height: stack.implicitHeight height: stack.implicitHeight
width: stack.implicitWidth width: stack.implicitWidth
StackView { StackView {
@ -271,6 +278,7 @@ ApplicationWindow {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
text: col.emoji.emoji text: col.emoji.emoji
font.pixelSize: Qt.application.font.pixelSize * 4 font.pixelSize: Qt.application.font.pixelSize * 4
font.family: settings.emoji_font_family
} }
Text { Text {
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom