2021-03-05 02:35:15 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
2021-03-07 07:57:56 +03:00
|
|
|
//
|
2021-03-05 02:35:15 +03:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-01-12 17:03:39 +03:00
|
|
|
import QtQuick 2.3
|
2021-01-12 17:04:31 +03:00
|
|
|
import QtQuick.Controls 2.3
|
2020-03-20 23:07:26 +03:00
|
|
|
import QtQuick.Layouts 1.10
|
|
|
|
|
|
|
|
Rectangle {
|
2020-10-08 22:11:21 +03:00
|
|
|
color: "red"
|
|
|
|
implicitHeight: Qt.application.font.pixelSize * 4
|
|
|
|
implicitWidth: col.width
|
|
|
|
height: Qt.application.font.pixelSize * 4
|
|
|
|
width: col.width
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
id: col
|
|
|
|
|
|
|
|
property var emoji: emojis.mapping[Math.floor(Math.random() * 64)]
|
|
|
|
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
|
|
|
|
Label {
|
|
|
|
height: font.pixelSize * 2
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
text: col.emoji.emoji
|
|
|
|
font.pixelSize: Qt.application.font.pixelSize * 2
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
|
|
|
text: col.emoji.description
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-20 23:07:26 +03:00
|
|
|
}
|