Improve the label for showing the rich text controls and tell users what pressing enter will do.
This commit is contained in:
@@ -67,16 +67,25 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
implicitHeight: core.implicitHeight + Kirigami.Units.largeSpacing
|
implicitHeight: column.implicitHeight + Kirigami.Units.largeSpacing
|
||||||
|
|
||||||
ChatBarCore {
|
ColumnLayout {
|
||||||
id: core
|
id: column
|
||||||
anchors.top: root.top
|
anchors.top: root.top
|
||||||
anchors.horizontalCenter: root.horizontalCenter
|
anchors.horizontalCenter: root.horizontalCenter
|
||||||
|
ChatBarCore {
|
||||||
Message.room: root.currentRoom
|
id: core
|
||||||
room: root.currentRoom
|
Message.room: root.currentRoom
|
||||||
maxAvailableWidth: chatBarSizeHelper.availableWidth
|
room: root.currentRoom
|
||||||
|
maxAvailableWidth: chatBarSizeHelper.availableWidth
|
||||||
|
}
|
||||||
|
QQC2.Label {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: !Kirigami.Setting.isMobile
|
||||||
|
text: NeoChatConfig.sendMessageWith === 1 ? i18nc("As in enter starts a new line in the chat bar", "Enter starts a new line") : i18nc("As in enter starts send the chat message", "Enter sends the message")
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
|
font.pointSize: Kirigami.Theme.defaultFont.pointSize * NeoChatConfig.fontScale * 0.75
|
||||||
|
}
|
||||||
}
|
}
|
||||||
LibNeoChat.DelegateSizeHelper {
|
LibNeoChat.DelegateSizeHelper {
|
||||||
id: chatBarSizeHelper
|
id: chatBarSizeHelper
|
||||||
|
|||||||
@@ -74,13 +74,13 @@ QQC2.Control {
|
|||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
id: emojiButton
|
id: emojiButton
|
||||||
property EmojiDialog dialog
|
property EmojiDialog dialog
|
||||||
|
|
||||||
icon.name: "smiley"
|
icon.name: "smiley"
|
||||||
text: i18n("Emojis & Stickers")
|
text: i18n("Emojis & Stickers")
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: dialog !== null
|
checked: dialog !== null
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(!checked){
|
if(!checked){
|
||||||
if(dialog) {
|
if(dialog) {
|
||||||
@@ -108,7 +108,7 @@ QQC2.Control {
|
|||||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
QQC2.ToolTip.text: text
|
QQC2.ToolTip.text: text
|
||||||
}
|
}
|
||||||
|
|
||||||
QQC2.ScrollView {
|
QQC2.ScrollView {
|
||||||
id: chatScrollView
|
id: chatScrollView
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ RowLayout {
|
|||||||
|
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
icon.name: "edit-select-text-symbolic"
|
icon.name: "edit-select-text-symbolic"
|
||||||
text: i18nc("@action:button", "Rich Text")
|
text: NeoChatConfig.sendMessageWith === 1 ? i18nc("@action:button", "Hide Rich Text Controls") : i18nc("@action:button", "Show Rich Text Controls")
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: NeoChatConfig.sendMessageWith === 1
|
checked: NeoChatConfig.sendMessageWith === 1
|
||||||
|
|||||||
Reference in New Issue
Block a user