From 122b14d526f86624aa470d394f70f608cea9e823 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 30 May 2023 19:10:38 -0400 Subject: [PATCH] Use the new MyButton for the regenerate response button. --- gpt4all-chat/main.qml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/gpt4all-chat/main.qml b/gpt4all-chat/main.qml index 9889aa4e..ff343d22 100644 --- a/gpt4all-chat/main.qml +++ b/gpt4all-chat/main.qml @@ -816,7 +816,7 @@ Window { } } - Button { + MyButton { visible: chatModel.count && !currentChat.isServer Image { anchors.verticalCenter: parent.verticalCenter @@ -856,20 +856,8 @@ Window { anchors.horizontalCenter: textInputView.horizontalCenter anchors.bottomMargin: 40 padding: 15 - contentItem: Text { - text: currentChat.responseInProgress ? qsTr("Stop generating") : qsTr("Regenerate response") - color: theme.textColor - Accessible.role: Accessible.Button - Accessible.name: text - Accessible.description: qsTr("Controls generation of the response") - } - background: Rectangle { - opacity: .5 - border.color: theme.backgroundLightest - border.width: 1 - radius: 10 - color: theme.backgroundLight - } + text: currentChat.responseInProgress ? qsTr("Stop generating") : qsTr("Regenerate response") + Accessible.description: qsTr("Controls generation of the response") } ScrollView {