Improve emoji pane
This commit is contained in:
committed by
Tobias Fella
parent
de666b9377
commit
dd977976db
@@ -95,9 +95,16 @@ 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 {
|
||||||
textArea: chatBar.textField
|
topPadding: 0
|
||||||
onChosen: addText(emoji)
|
bottomPadding: 0
|
||||||
|
rightPadding: 0
|
||||||
|
leftPadding: 0
|
||||||
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||||
|
contentItem: EmojiPicker {
|
||||||
|
textArea: chatBar.textField
|
||||||
|
onChosen: addText(emoji)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user