Improve style of chat text input with the material style
This commit is contained in:
@@ -174,7 +174,7 @@ ToolBar {
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
spacing: Kirigami.Units.smallSpacing
|
spacing: 0 //Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
id: cancelReplyButton
|
id: cancelReplyButton
|
||||||
@@ -231,6 +231,7 @@ ToolBar {
|
|||||||
placeholderText: i18n("Write your message...")
|
placeholderText: i18n("Write your message...")
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
|
leftPadding: Kirigami.Units.smallSpacing
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
verticalAlignment: TextEdit.AlignVCenter
|
verticalAlignment: TextEdit.AlignVCenter
|
||||||
|
|
||||||
@@ -363,7 +364,7 @@ ToolBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Button {
|
ToolButton {
|
||||||
id: emojiButton
|
id: emojiButton
|
||||||
icon.name: "preferences-desktop-emoticons"
|
icon.name: "preferences-desktop-emoticons"
|
||||||
icon.color: "transparent"
|
icon.color: "transparent"
|
||||||
@@ -371,7 +372,7 @@ ToolBar {
|
|||||||
onClicked: emojiPicker.visible = !emojiPicker.visible
|
onClicked: emojiPicker.visible = !emojiPicker.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
ToolButton {
|
||||||
id: uploadButton
|
id: uploadButton
|
||||||
|
|
||||||
visible: !isReply && !hasAttachment
|
visible: !isReply && !hasAttachment
|
||||||
@@ -401,7 +402,7 @@ ToolBar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
ToolButton {
|
||||||
icon.name: "document-send"
|
icon.name: "document-send"
|
||||||
icon.color: "transparent"
|
icon.color: "transparent"
|
||||||
|
|
||||||
@@ -415,6 +416,19 @@ ToolBar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
background: Rectangle {
|
||||||
|
implicitHeight: 40
|
||||||
|
color: Kirigami.Theme.backgroundColor
|
||||||
|
Kirigami.Separator {
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
top: parent.top
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function insert(str) {
|
function insert(str) {
|
||||||
inputField.insert(inputField.cursorPosition, str)
|
inputField.insert(inputField.cursorPosition, str)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user