mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
69782cf713
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
21 lines
522 B
QML
21 lines
522 B
QML
import QtCore
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Controls.Basic
|
|
import llm
|
|
|
|
TextField {
|
|
id: myDirectoryField
|
|
padding: 10
|
|
property bool isValid: LLM.directoryExists(text)
|
|
color: text === "" || isValid ? theme.textColor : theme.textErrorColor
|
|
background: Rectangle {
|
|
implicitWidth: 150
|
|
color: theme.controlBackground
|
|
border.width: 1
|
|
border.color: theme.controlBorder
|
|
radius: 10
|
|
}
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
|
}
|