Add large network icon background for chatgpt and server modes.

This commit is contained in:
Adam Treat
2023-05-15 14:08:08 -04:00
committed by AT
parent dd27c10f54
commit 0cd509d530
3 changed files with 23 additions and 5 deletions

View File

@@ -579,6 +579,16 @@ Window {
anchors.fill: parent
color: currentChat.isServer ? theme.backgroundDark : theme.backgroundLighter
Image {
visible: currentChat.isServer || currentChat.modelName.startsWith("chatgpt-")
anchors.fill: parent
sourceSize.width: 1024
sourceSize.height: 1024
fillMode: Image.PreserveAspectFit
opacity: 0.15
source: "qrc:/gpt4all/icons/network.svg"
}
ListView {
id: listView
anchors.fill: parent
@@ -599,6 +609,7 @@ Window {
cursorVisible: currentResponse ? currentChat.responseInProgress : false
cursorPosition: text.length
background: Rectangle {
opacity: 0.3
color: name === qsTr("Response: ")
? (currentChat.isServer ? theme.backgroundDarkest : theme.backgroundLighter)
: (currentChat.isServer ? theme.backgroundDark : theme.backgroundLight)