From b4bcc5b37c9f2ff8b7eeabb685b5a7c3100601dd Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Wed, 20 Mar 2024 12:56:21 -0400 Subject: [PATCH] Fix colors for server chat in all themes. Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 0b52d3fa..53bda055 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -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