Fix colors for server chat in all themes.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-03-20 12:56:21 -04:00 committed by AT
parent f571e7e450
commit b4bcc5b37c

View File

@ -891,7 +891,13 @@ Rectangle {
text: value + references
anchors.horizontalCenter: listView.contentItem.horizontalCenter
width: Math.min(1280, listView.contentItem.width)
color: theme.textColor
color: {
if (!currentChat.isServer)
return theme.textColor
if (name === qsTr("Response: "))
return theme.white
return theme.black
}
wrapMode: Text.WordWrap
textFormat: TextEdit.PlainText
focus: false