mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-19 07:18:24 +00:00
Allow smallbuttons to use emojis. Insert text in text area in chats. Ensure to send plain text message. Use custom text font for text edit. Emoji picker and display it aside of files preview with a splitter. Fix file preview layout in replies. Change double click to simple click on avatar for copying address into the smartsearchbar. Add an option to change emojis font. Update chat actions colors.
52 lines
No EOL
1.2 KiB
QML
52 lines
No EOL
1.2 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.3
|
|
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
import Linphone.Styles 1.0
|
|
import Utils 1.0
|
|
import UtilsCpp 1.0
|
|
|
|
import Units 1.0
|
|
|
|
import 'Chat.js' as Logic
|
|
|
|
// =============================================================================
|
|
Item{
|
|
id: mainItem
|
|
visible: false
|
|
height: visible ? 150 : 0
|
|
//Layout.preferredHeight: visible ? 150 : 0
|
|
//Layout.maximumHeight: visible ? 150 : 0
|
|
signal emojiClicked(var emoji)
|
|
//onHeightChanged: console.log(height)
|
|
onVisibleChanged: if(visible) loader.active = true
|
|
Loader{
|
|
id: loader
|
|
property bool toLoad : false
|
|
anchors.fill: parent
|
|
active: true
|
|
asynchronous: true
|
|
//visible: status == Loader.Ready
|
|
sourceComponent:
|
|
Flickable {
|
|
id: emojisArea
|
|
ScrollBar.vertical: ForceScrollBar {visible: emojisArea.height < emojiPicker.height}
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
contentHeight: emojiPicker.height
|
|
contentWidth: width - ScrollBar.vertical.width
|
|
flickableDirection: Flickable.VerticalFlick
|
|
clip: true
|
|
anchors.fill: parent
|
|
//Layout.fillHeight: true
|
|
//Layout.fillWidth: true
|
|
EmojiPicker {
|
|
id: emojiPicker
|
|
width: emojisArea.contentWidth
|
|
onEmojiClicked: mainItem.emojiClicked(emoji)
|
|
}
|
|
}
|
|
}
|
|
} |