mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix colors for server chat in all themes.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
f571e7e450
commit
b4bcc5b37c
@ -891,7 +891,13 @@ Rectangle {
|
|||||||
text: value + references
|
text: value + references
|
||||||
anchors.horizontalCenter: listView.contentItem.horizontalCenter
|
anchors.horizontalCenter: listView.contentItem.horizontalCenter
|
||||||
width: Math.min(1280, listView.contentItem.width)
|
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
|
wrapMode: Text.WordWrap
|
||||||
textFormat: TextEdit.PlainText
|
textFormat: TextEdit.PlainText
|
||||||
focus: false
|
focus: false
|
||||||
|
Loading…
Reference in New Issue
Block a user