Make emojis a bit smaller
This commit is contained in:
parent
480c4bc8f5
commit
fed0463e57
@ -267,17 +267,17 @@ ApplicationWindow {
|
||||
model: 7
|
||||
delegate: Rectangle {
|
||||
color: "transparent"
|
||||
implicitHeight: Qt.application.font.pixelSize * 8
|
||||
implicitHeight: Qt.application.font.pixelSize * 3
|
||||
implicitWidth: col.width
|
||||
ColumnLayout {
|
||||
id: col
|
||||
anchors.bottom: parent.bottom
|
||||
property var emoji: emojis.mapping[Math.floor(Math.random()*64)]
|
||||
Text {
|
||||
height: font.pixelSize * 2
|
||||
//height: font.pixelSize * 2
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: col.emoji.emoji
|
||||
font.pixelSize: Qt.application.font.pixelSize * 4
|
||||
font.pixelSize: Qt.application.font.pixelSize * 2
|
||||
font.family: settings.emoji_font_family
|
||||
}
|
||||
Text {
|
||||
|
25
resources/qml/device-verification/EmojiElement.qml
Normal file
25
resources/qml/device-verification/EmojiElement.qml
Normal file
@ -0,0 +1,25 @@
|
||||
import QtQuick 2.3
|
||||
import QtQuick.Layouts 1.10
|
||||
|
||||
Rectangle {
|
||||
color: "red"
|
||||
implicitHeight: Qt.application.font.pixelSize * 4
|
||||
implicitWidth: col.width
|
||||
height: Qt.application.font.pixelSize * 4
|
||||
width: col.width
|
||||
ColumnLayout {
|
||||
id: col
|
||||
anchors.bottom: parent.bottom
|
||||
property var emoji: emojis.mapping[Math.floor(Math.random()*64)]
|
||||
Text {
|
||||
height: font.pixelSize * 2
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: col.emoji.emoji
|
||||
font.pixelSize: Qt.application.font.pixelSize * 2
|
||||
}
|
||||
Text {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||
text: col.emoji.description
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user