mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Use the new MyButton for the regenerate response button.
This commit is contained in:
parent
61cbae6617
commit
0185bfb8d6
@ -816,7 +816,7 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
MyButton {
|
||||||
visible: chatModel.count && !currentChat.isServer
|
visible: chatModel.count && !currentChat.isServer
|
||||||
Image {
|
Image {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
@ -856,21 +856,9 @@ Window {
|
|||||||
anchors.horizontalCenter: textInputView.horizontalCenter
|
anchors.horizontalCenter: textInputView.horizontalCenter
|
||||||
anchors.bottomMargin: 40
|
anchors.bottomMargin: 40
|
||||||
padding: 15
|
padding: 15
|
||||||
contentItem: Text {
|
|
||||||
text: currentChat.responseInProgress ? qsTr("Stop generating") : qsTr("Regenerate response")
|
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")
|
Accessible.description: qsTr("Controls generation of the response")
|
||||||
}
|
}
|
||||||
background: Rectangle {
|
|
||||||
opacity: .5
|
|
||||||
border.color: theme.backgroundLightest
|
|
||||||
border.width: 1
|
|
||||||
radius: 10
|
|
||||||
color: theme.backgroundLight
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
id: textInputView
|
id: textInputView
|
||||||
|
Loading…
Reference in New Issue
Block a user