mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-08-17 01:00:28 +03:00
Add a tooltip to make clear what is going on with the antenna animation.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
e5d9936d04
commit
53fc2d56f6
@ -1417,10 +1417,26 @@ Rectangle {
|
||||
}
|
||||
|
||||
ColorOverlay {
|
||||
id: antennaColored
|
||||
visible: ModelList.installedModels.count !== 0 && (currentChat.isServer || currentChat.modelInfo.isOnline || MySettings.networkIsActive)
|
||||
anchors.fill: antennaImage
|
||||
source: antennaImage
|
||||
color: theme.styledTextColor
|
||||
ToolTip.text: {
|
||||
if (MySettings.networkIsActive)
|
||||
return qsTr("The datalake is enabled")
|
||||
else if (currentChat.modelInfo.isOnline)
|
||||
return qsTr("Using a network model")
|
||||
else if (currentChat.modelInfo.isOnline)
|
||||
return qsTr("Server mode is enabled")
|
||||
}
|
||||
ToolTip.visible: maAntenna.containsMouse
|
||||
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
||||
MouseArea {
|
||||
id: maAntenna
|
||||
anchors.fill: antennaColored
|
||||
hoverEnabled: true
|
||||
}
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
|
Loading…
Reference in New Issue
Block a user