From 53fc2d56f6585043191a7a333504f01821936be2 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Wed, 26 Jun 2024 15:19:53 -0400 Subject: [PATCH] Add a tooltip to make clear what is going on with the antenna animation. Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index ef5b71e7..93cfe936 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -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 {