mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-13 06:19:20 +00: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:
@@ -1417,10 +1417,26 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColorOverlay {
|
ColorOverlay {
|
||||||
|
id: antennaColored
|
||||||
visible: ModelList.installedModels.count !== 0 && (currentChat.isServer || currentChat.modelInfo.isOnline || MySettings.networkIsActive)
|
visible: ModelList.installedModels.count !== 0 && (currentChat.isServer || currentChat.modelInfo.isOnline || MySettings.networkIsActive)
|
||||||
anchors.fill: antennaImage
|
anchors.fill: antennaImage
|
||||||
source: antennaImage
|
source: antennaImage
|
||||||
color: theme.styledTextColor
|
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 {
|
SequentialAnimation {
|
||||||
|
Reference in New Issue
Block a user