Improve emoji pane

This commit is contained in:
Carl Schwan
2021-12-26 13:26:42 +00:00
committed by Tobias Fella
parent de666b9377
commit dd977976db
2 changed files with 11 additions and 4 deletions

View File

@@ -95,10 +95,17 @@ Item {
width: parent.width width: parent.width
height: visible ? implicitHeight : 0 height: visible ? implicitHeight : 0
anchors.bottom: replySeparator.top anchors.bottom: replySeparator.top
sourceComponent: EmojiPicker{ sourceComponent: QQC2.Pane {
topPadding: 0
bottomPadding: 0
rightPadding: 0
leftPadding: 0
Kirigami.Theme.colorSet: Kirigami.Theme.View
contentItem: EmojiPicker {
textArea: chatBar.textField textArea: chatBar.textField
onChosen: addText(emoji) onChosen: addText(emoji)
} }
}
Behavior on height { Behavior on height {
NumberAnimation { NumberAnimation {
property: "height" property: "height"

View File

@@ -63,7 +63,7 @@ ColumnLayout {
Layout.preferredWidth: del.label === "custom" ? implicitWidth + Kirigami.Units.largeSpacing : Kirigami.Units.gridUnit * 2 Layout.preferredWidth: del.label === "custom" ? implicitWidth + Kirigami.Units.largeSpacing : Kirigami.Units.gridUnit * 2
font.family: del.label === "custom" ? "" : 'emoji' font.family: del.label === "custom" ? Kirigami.Theme.defaultFont.family : 'emoji'
text: del.label === "custom" ? i18n("Custom") : del.label text: del.label === "custom" ? i18n("Custom") : del.label
} }