Ensure more QML text components are rendering things as plain text

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2022-12-01 12:06:05 +01:00 committed by Matthieu Gallien
parent d39aac0cb8
commit 00fcb6e01d
4 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,7 @@ RowLayout {
id: unifiedSearchResultTitleText
Layout.fillWidth: true
text: unifiedSearchResultItemDetails.title.replace(/[\r\n]+/g, " ")
textFormat: Text.PlainText
elide: Text.ElideRight
font.pixelSize: unifiedSearchResultItemDetails.titleFontSize
color: unifiedSearchResultItemDetails.titleColor
@ -98,6 +99,7 @@ RowLayout {
id: unifiedSearchResultTextSubline
Layout.fillWidth: true
text: unifiedSearchResultItemDetails.subline.replace(/[\r\n]+/g, " ")
textFormat: Text.PlainText
elide: Text.ElideRight
font.pixelSize: unifiedSearchResultItemDetails.sublineFontSize
color: unifiedSearchResultItemDetails.sublineColor

View File

@ -35,6 +35,7 @@ ColumnLayout {
Label {
id: unifiedSearchResultsNoResultsLabelDetails
text: unifiedSearchResultNothingFoundContainer.text
textFormat: Text.PlainText
color: Style.ncTextColor
font.pixelSize: Style.topLinePixelSize * 1.25
wrapMode: Text.Wrap

View File

@ -13,6 +13,7 @@ Label {
leftPadding: Style.unifiedSearchResultSectionItemLeftPadding
text: section
textFormat: Text.PlainText
font.pixelSize: Style.unifiedSearchResultTitleFontSize
color: UserModel.currentUser.accentColor

View File

@ -77,6 +77,7 @@ AbstractButton {
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
verticalAlignment: Text.AlignBottom
text: name
textFormat: Text.PlainText
elide: Text.ElideRight
color: Style.ncTextColor
font.pixelSize: Style.topLinePixelSize
@ -95,6 +96,7 @@ AbstractButton {
id: emoji
visible: model.statusEmoji !== ""
text: statusEmoji
textFormat: Text.PlainText
topPadding: -Style.accountLabelsSpacing
}
@ -103,6 +105,7 @@ AbstractButton {
Layout.fillWidth: true
visible: model.statusMessage !== ""
text: statusMessage
textFormat: Text.PlainText
elide: Text.ElideRight
color: Style.ncTextColor
font.pixelSize: Style.subLinePixelSize
@ -116,6 +119,7 @@ AbstractButton {
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
verticalAlignment: Text.AlignTop
text: server
textFormat: Text.PlainText
elide: Text.ElideRight
color: Style.ncTextColor
font.pixelSize: Style.subLinePixelSize