mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-21 13:10:35 +00:00
A better animation for when the model is thinking/responding. (#2557)
* A better animation for when the model is thinking/responding. * ChatView: remove redundant ternary ops Signed-off-by: Adam Treat <treat.adam@gmail.com> Signed-off-by: Jared Van Bortel <jared@nomic.ai> Co-authored-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
ce4dc2e789
commit
ccb98f34e0
@ -813,9 +813,20 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColorOverlay {
|
ColorOverlay {
|
||||||
|
id: colorOver
|
||||||
anchors.fill: logo
|
anchors.fill: logo
|
||||||
source: logo
|
source: logo
|
||||||
color: theme.conversationHeader
|
color: theme.conversationHeader
|
||||||
|
RotationAnimation {
|
||||||
|
id: rotationAnimation
|
||||||
|
target: colorOver
|
||||||
|
property: "rotation"
|
||||||
|
from: 0
|
||||||
|
to: 360
|
||||||
|
duration: 1000
|
||||||
|
loops: Animation.Infinite
|
||||||
|
running: currentResponse && (currentChat.responseInProgress || currentChat.isRecalc)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -845,14 +856,7 @@ Rectangle {
|
|||||||
color: theme.mutedTextColor
|
color: theme.mutedTextColor
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: (currentResponse ? true : false) && ((value === "" && currentChat.responseInProgress) || currentChat.isRecalc)
|
visible: currentResponse && ((value === "" && currentChat.responseInProgress) || currentChat.isRecalc)
|
||||||
MyBusyIndicator {
|
|
||||||
size: 24
|
|
||||||
color: theme.conversationProgress
|
|
||||||
Accessible.role: Accessible.Animation
|
|
||||||
Accessible.name: qsTr("Busy indicator")
|
|
||||||
Accessible.description: qsTr("The model is thinking")
|
|
||||||
}
|
|
||||||
Text {
|
Text {
|
||||||
color: theme.mutedTextColor
|
color: theme.mutedTextColor
|
||||||
font.pixelSize: theme.fontSizeLarger
|
font.pixelSize: theme.fontSizeLarger
|
||||||
|
Loading…
Reference in New Issue
Block a user