Set WrapMode on all TextArea components, and fix up some of the Labels
Upstream styles do not provide any wrapping by default, and thus we should not rely on deceptively convenient override in qqc2-desktop-style. See https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/331
This commit is contained in:
committed by
Tobias Fella
parent
2980dc49e4
commit
259b9884c7
@@ -187,7 +187,7 @@ QQC2.Control {
|
||||
|
||||
placeholderText: root.currentRoom.usesEncryption ? i18n("Send an encrypted message…") : root.currentRoom.mainCache.attachmentPath.length > 0 ? i18n("Set an attachment caption…") : i18n("Send a message…")
|
||||
verticalAlignment: TextEdit.AlignVCenter
|
||||
wrapMode: Text.Wrap
|
||||
wrapMode: TextEdit.Wrap
|
||||
|
||||
Accessible.description: placeholderText
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ FormCard.FormCardPage {
|
||||
id: roomTopicTextArea
|
||||
Accessible.description: roomTopicLabel.text
|
||||
Layout.fillWidth: true
|
||||
wrapMode: TextEdit.Wrap
|
||||
text: room.topic
|
||||
readOnly: !room.canSendState("m.room.topic")
|
||||
onTextChanged: roomTopicField.text = text
|
||||
|
||||
@@ -34,7 +34,7 @@ QQC2.TextArea {
|
||||
|
||||
color: Kirigami.Theme.textColor
|
||||
verticalAlignment: TextEdit.AlignVCenter
|
||||
wrapMode: Text.Wrap
|
||||
wrapMode: TextEdit.Wrap
|
||||
|
||||
onTextChanged: {
|
||||
_private.chatBarCache.text = text
|
||||
|
||||
@@ -32,7 +32,7 @@ Kirigami.Page {
|
||||
text: sourceText
|
||||
readOnly: true
|
||||
textFormat: TextEdit.PlainText
|
||||
wrapMode: Text.WordWrap
|
||||
wrapMode: TextEdit.Wrap
|
||||
background: Rectangle {
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||
Kirigami.Theme.inherit: false
|
||||
|
||||
@@ -63,7 +63,7 @@ RowLayout {
|
||||
selectByMouse: true
|
||||
selectByKeyboard: true
|
||||
readOnly: true
|
||||
wrapMode: QQC2.Label.Wrap
|
||||
wrapMode: TextEdit.Wrap
|
||||
textFormat: TextEdit.RichText
|
||||
background: Item {}
|
||||
HoverHandler {
|
||||
|
||||
Reference in New Issue
Block a user