From dbcf8c632748e339bdfe1938ad3aa92eceecb0b8 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 15 Jan 2023 18:29:00 -0500 Subject: [PATCH] Change placeholder text to make it clear that it's going to be a caption When sending an image as an attachment, the message you type into the chat box becomes its caption. However, it's not clear when in the chat box itself, which confusingly says you're typing a message. --- src/qml/Component/ChatBox/ChatBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Component/ChatBox/ChatBar.qml b/src/qml/Component/ChatBox/ChatBar.qml index 26981c64a..e650be292 100644 --- a/src/qml/Component/ChatBox/ChatBar.qml +++ b/src/qml/Component/ChatBox/ChatBar.qml @@ -77,7 +77,7 @@ QQC2.ToolBar { topPadding: 0 bottomPadding: 0 - placeholderText: readOnly ? i18n("This room is encrypted. Build libQuotient with encryption enabled to send encrypted messages.") : currentRoom.chatBoxEditId.length > 0 ? i18n("Edit Message") : currentRoom.usesEncryption ? i18n("Send an encrypted message…") : i18n("Send a message…") + placeholderText: readOnly ? i18n("This room is encrypted. Build libQuotient with encryption enabled to send encrypted messages.") : currentRoom.chatBoxEditId.length > 0 ? i18n("Edit Message") : currentRoom.usesEncryption ? i18n("Send an encrypted message…") : currentRoom.chatBoxAttachmentPath.length > 0 ? i18n("Set an attachment caption...") : i18n("Send a message…") verticalAlignment: TextEdit.AlignVCenter horizontalAlignment: TextEdit.AlignLeft wrapMode: Text.Wrap